diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-24 14:58:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:51 -0500 |
commit | 70b52b02a77c695d32aa57daaeb5689cd6857eba (patch) | |
tree | 4f7bb8f3f645e64b8983e7fd3f439d5c629c975f /source4/lib/replace/SConscript | |
parent | 2a9b65cd17b271ff88fca6bda0bddc6230c2b319 (diff) | |
download | samba-70b52b02a77c695d32aa57daaeb5689cd6857eba.tar.gz samba-70b52b02a77c695d32aa57daaeb5689cd6857eba.tar.bz2 samba-70b52b02a77c695d32aa57daaeb5689cd6857eba.zip |
r10476: Move some more types to libreplace. Fix missing strndup errors
for heimdal
(This used to be commit e09ffdfb1dba289b79ac7e5a638bf5322d45ddc0)
Diffstat (limited to 'source4/lib/replace/SConscript')
-rw-r--r-- | source4/lib/replace/SConscript | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/source4/lib/replace/SConscript b/source4/lib/replace/SConscript index a2b3a30e10..60652b0b15 100644 --- a/source4/lib/replace/SConscript +++ b/source4/lib/replace/SConscript @@ -4,7 +4,7 @@ Import('hostenv defines') if hostenv['configure']: conf = Configure(hostenv) for f in ['memset','syslog','setnetgrent','getnetgrent','endnetgrent', \ - 'mktemp']: + 'mktemp', 'memcpy']: if not conf.CheckFunc(f,'c'): print "Required function `%s' not found" % f exit(1) @@ -26,6 +26,29 @@ if hostenv['configure']: if not conf.CheckType('socklen_t'): defines['socklen_t'] = 'int' + needed_types = { + 'uint_t': 'unsigned int', + 'int8_t': 'signed char', + 'uint8_t': 'unsigned char', + 'u_int8_t': 'unsigned char', + 'int16_t': 'short', + 'uint16_t': 'unsigned short', + 'u_int16_t': 'unsigned short', + 'int32_t': 'long', + 'uint32_t': 'unsigned long', + 'u_int32_t': 'unsigned long', + 'int64_t': 'long long', + 'uint64_t': 'unsigned long long', + } + + type_headers = """ +#include <stdint.h> +#include <sys/types.h> +""" + for t in needed_types: + if not conf.CheckType(t,type_headers): + defines[t] = needed_types[t] + conf.Finish() hostenv.StaticLibrary('repdir', ['repdir/repdir.c']) |