diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-19 17:10:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:31 -0500 |
commit | 64b611a18e2425994e611b0af21e9c4362f9f207 (patch) | |
tree | 2c2b44d02562e3d28c11ff6b00de7bcbc0a3c262 /source4/lib/replace | |
parent | 636dbb355b2e96fd61b0fd042c3916a4735995e2 (diff) | |
download | samba-64b611a18e2425994e611b0af21e9c4362f9f207.tar.gz samba-64b611a18e2425994e611b0af21e9c4362f9f207.tar.xz samba-64b611a18e2425994e611b0af21e9c4362f9f207.zip |
r12364: add UINT32_MAX and UINT64_MAX replacement defines
(hopefully fix the build on OpenBSD)
metze
(This used to be commit cbe06ade214bd29eab5c11fcd011a3c463bf78db)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r-- | source4/lib/replace/README | 2 | ||||
-rw-r--r-- | source4/lib/replace/replace.h | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/README b/source4/lib/replace/README index 1e804d50e19..80a2d5c1634 100644 --- a/source4/lib/replace/README +++ b/source4/lib/replace/README @@ -59,6 +59,8 @@ int{8,16,32,64}_t Constants: PATH_NAME_MAX UINT16_MAX +UINT32_MAX +UINT64_MAX Prerequisites: memset (for bzero) diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index fda494a444d..0f1eb42ac0d 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -170,4 +170,12 @@ int rep_mkstemp(char *temp); #define UINT16_MAX 65535 #endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif + +#ifndef UINT64_MAX +#define UINT64_MAX ((uint64_t)-1) +#endif + #endif |