1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-09 00:23:50 +03:00
Commit Graph

49 Commits

Author SHA1 Message Date
Stefan Metzmacher
8f20d2cfe5 r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed

metze
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
521e94f269 r18458: move wins32 stuff to the top dir
metze
2007-10-10 14:18:33 -05:00
Andrew Tridgell
4dd949c80d r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
two conflict on irix.
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
8774eeb0dc r18419: fix include paths of the configure tests
metze
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
0f48c8ad7c r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
to get MAP_FAILED

metze
2007-10-10 14:18:22 -05:00
Andrew Tridgell
095b805774 r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
2007-10-10 14:18:13 -05:00
Andrew Tridgell
c2f2dbb5d1 r18337: more -Ae tests in check_cc.m4
honor the MMAP_BLACKLIST
2007-10-10 14:18:11 -05:00
Andrew Tridgell
45a3a6a566 r18335: more portable bool tests 2007-10-10 14:18:11 -05:00
Andrew Tridgell
77c442cd46 r18278: move more header checks and _GNU_SOURCE into libreplace 2007-10-10 14:18:00 -05:00
Andrew Tridgell
6a48f75eae r18206: need rep_ macro for setlinebuf 2007-10-10 14:17:49 -05:00
Andrew Tridgell
dd7af58b83 r18205: need rep_ macros for seteuid and setegid 2007-10-10 14:17:49 -05:00
Andrew Tridgell
57cd0ca176 r18160: - pread and pwrite replacements need to be non-static
- replacing rename() is pointless - all platforms have it (and the
  #define of rename breaks some code)

- use system/locale.h in snprintf.c

- fix passwd.h for initgroups

- stdlib is in replace.h, not needed elsewhere

- fix the initgroups replacement

- fix mapping of dl functions to rep_*
2007-10-10 14:17:44 -05:00
Andrew Tridgell
77d1a468e0 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
2007-10-10 14:17:36 -05:00
Andrew Tridgell
68caf1bba7 r18111: base inclusion of replacement printf fns on function existance, not
declaration. Otherwise _GNU_SOURCE and _BSD_SOURCE stuffs things up
(possibly fixable, but not now)
2007-10-10 14:17:18 -05:00
Andrew Tridgell
037196538a r18081: libreplace now uses config.h again 2007-10-10 14:17:13 -05:00
Andrew Tridgell
8d80024976 r18067: some tweaks for irix and hpux
this checks for -AC99 or -c99 to get C99 structure init to work. It's
based on a similar macro metze did for Samba4.

the double sinclude() is weird, but I can't see any other way to use a
common config.m4 between libreplace and all the projects that use it
2007-10-10 14:17:10 -05:00
Jelmer Vernooij
b0cfdd24be r18039: Include header with time_t if needed. 2007-10-10 14:17:06 -05:00
Jelmer Vernooij
fe7ca4b145 r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
2007-10-10 14:17:05 -05:00
James Peach
b3d2512ed4 r16556: Add mkdtemp to libreplace. This is apparantly available on Linux
and BSD systems, but it's not everywhere.
2007-10-10 14:09:34 -05:00
Jelmer Vernooij
139d9369dc r15986: Declare struct tm 2007-10-10 14:08:46 -05:00
Andrew Tridgell
acfaa98b5e r15953: our timegm() replacement still doesn't work, so grab the one from
Heimdal which does work. This should fix most of the rest of the
failures on solaris
2007-10-10 14:08:44 -05:00
Andrew Tridgell
971cead2ad r15882: I forgot to add in this prototype for strtok_r() 2007-10-10 14:08:37 -05:00
Jelmer Vernooij
3780e0580b r15868: Add replacement macro for __STRING() 2007-10-10 14:08:34 -05:00
Stefan Metzmacher
6c5a2b08ca r15280: - remove the 2nd check for __FUNCTION__
- fallback to __func__ if __FUNCTION__ isn't there

metze
2007-10-10 14:05:01 -05:00
Jelmer Vernooij
d5d03cdd23 r15226: Fix order of typedef specification - caught by kblin 2007-10-10 14:04:21 -05:00
Jelmer Vernooij
6598efc6b3 r15224: Check whether -MT is actually supported by the compiler before using
automatic dependencies
2007-10-10 14:04:20 -05:00
Jelmer Vernooij
a5a648de94 r15203: Allow system 'bool' type to be defined in another header then stdbool.h 2007-10-10 14:04:17 -05:00
Jelmer Vernooij
3f0396aade r15200: Move MIN/MAX macros to libreplace as some systems have them
in sys/param.h
2007-10-10 14:04:16 -05:00
Jelmer Vernooij
76b1576541 r15000: Move some more autoconf tests out of build/m4/rewrite.m4
Guarantee availability of __FUNCTION__ in libreplace
2007-10-10 14:04:00 -05:00
Jelmer Vernooij
a5c87360a7 r14999: Remove more unused autoconf code
Simplify va_copy() replacement code a bit
2007-10-10 14:04:00 -05:00
Jelmer Vernooij
bccfddcafa r14844: Support a stdbool.h replacement in lib/replace/ 2007-10-10 13:59:41 -05:00
Jelmer Vernooij
2b3d56e153 r13577: Move some (possibly system-defined) defines to replace.h 2007-10-10 13:51:57 -05:00
Stefan Metzmacher
32f2cf433f r12814: we need this here too, as we'll include replace.h for building heimdal/*
too, and for this we don't include includes.h

(hopefully) fix the build on AIX

metze
2007-10-10 13:49:59 -05:00
Jelmer Vernooij
243cf760b0 r12801: Some more include/ cleanups (remove unused macros + move files
to specific dirs)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
cbe06ade21 r12364: add UINT32_MAX and UINT64_MAX replacement defines
(hopefully fix the build on OpenBSD)

metze
2007-10-10 13:47:31 -05:00
Jelmer Vernooij
4322962074 r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
in build/smb_build/, remove unused pstring macros
2007-10-10 13:47:19 -05:00
Andrew Tridgell
4483d275e1 r10896: added a strcasestr() replacement function 2007-10-10 13:39:41 -05:00
Jelmer Vernooij
dc3dc79674 r10664: Include limits.h in replace.h for HOST_NAME_MAX 2007-10-10 13:39:15 -05:00
Jelmer Vernooij
e09ffdfb1d r10476: Move some more types to libreplace. Fix missing strndup errors
for heimdal
2007-10-10 13:38:51 -05:00
Jelmer Vernooij
7be3ec4dbb r10453: Fix the build 2007-10-10 13:38:48 -05:00
Jelmer Vernooij
29919a7105 r10438: Move portability functions to lib/replace/; replace now simply ensures
that a given set of (working) POSIX functions are available (without
prefixes to their names, etc). See lib/replace/README for a list.

Functions that behave different from their POSIX specification
(such as sys_select, sys_read, etc) have kept the sys_ prefix.
2007-10-10 13:38:45 -05:00
Andrew Tridgell
aa9491c0cb r8465: once we define socklen_t, then tell other include files we have it. This prevents roken
trying to redefine it
2007-10-10 13:23:06 -05:00
Andrew Tridgell
3d4a2221c3 r8458: next target is irix - this gets the socket wrapper code building 2007-10-10 13:23:05 -05:00
Andrew Tridgell
30e1b6140e r8450: more configure tests for solaris. It now builds some binaries, but
fails in the ejs floating point code.
2007-10-10 13:23:04 -05:00
Andrew Tridgell
59c3de6ca8 r8420: slowly getting my way through some more heimdal portability fixes 2007-10-10 13:23:01 -05:00
Andrew Tridgell
a1ca8352f4 r8418: PRINTF_ATTRIBUTE declaration has to come before it is used :-) 2007-10-10 13:23:00 -05:00
Andrew Tridgell
117d2fa31d r8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build 2007-10-10 13:23:00 -05:00
Andrew Tridgell
7d4e309f02 r8313: moved PRINTF_ATTRIBUTE to replace.h to try to get irix building with heimdal 2007-10-10 13:20:05 -05:00
Andrew Tridgell
d4648249b2 r7352: the internal heimdal build change. This changes quite a few things:
- if you want kerberos now, you need to unpack a lorikeet heimdal
   tree in source/heimdal/. If source/heimdal/ does not exist at
   configure time then all kerberos features are disabled. You cannot
   use an external kerberos library for now. That may change later.

 - moved lib/replace/ config stuff to lib/replace/ and create a
   lib/replace/replace.h. That allows the heimdal build to use our
   portability layer, and prevenets duplicate definitions of functions
   like strlcat()

 - if you do enable heimdal, then you will need to do 'make
   HEIMDAL_EXTERNAL' before you build Samba. That should be fixed once
   I explain the problem to jelmer (the problem is the inability to
   set a depend without also dragging in the object list of the
   dependency. We need this for building the heimdal asn1 compiler and
   et compiler.

 - disabled all of the m4 checks for external kerberos libraries. I
   left them in place in auth/kerberos/, but disabled it in
   configure.in

some of the heimdal_build/ code is still very rough, for example I
don't correctly detect the correct awk, flex, bison replacements for
heimdal_build/build_external.sh. I expect to fix that stuff up over
the next few days.
2007-10-10 13:17:45 -05:00