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

215 Commits

Author SHA1 Message Date
Stefan Metzmacher
5af86eb3f0 r18456: Tru64 doesn't have getdents() so we don't need this ifdef's...
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
d53eb6bd10 r18455: check if getdents() and getdirentries() are available.
(only for the nicer configure output)

metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
f9f14a9429 r18454: this was just for debugging...
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
dd791d255c r18452: add configure test for a getdirentries() based replacement for broken readdir()
Tru64 need this, linux also has getdirentries() but the native readdir() works
but it means we can write the code on linux and when it works it may work on Tru64
too.

tridge: can you try to implement this?

metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
a564194817 r18451: move repdir/ into the top dir
metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
3cac61152e r18450: - autogenerate the OBJ_FILES for LIBREPLACE
- remove samba specific stuff from libreplace
- and include the readdir replacement stuff in the standalone builds

metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
8662e14815 r18445: splitout the dlfcn related tests
metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
d65e94fea9 r18444: return the correct value on error
metze
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
5fddb66def r18443: add object files only when needed
metze
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
a5ebfd0ab7 r18442: run the os2_delete test in the testsuite too
that shows that Tru64 is broken...

It doesn't have getdirent() and the the replacement
code doesn't work there.

tridge: do you have any idea how to fix this?

metze
2007-10-10 14:18:30 -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
a7ce2c6c53 r18420: fix the build...
metze
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
8774eeb0dc r18419: fix include paths of the configure tests
metze
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
5279656a15 r18418: Tru64 has a different prototype for seekdir() returning int
when _OSF_SOURCE is defined

metze
2007-10-10 14:18:26 -05:00
Andrew Tridgell
3ddb77c1e3 r18407: test for epoll.h and select.h 2007-10-10 14:18:24 -05:00
Andrew Tridgell
5fc756a770 r18401: some of our code also relies on fprintf() handling C99
semantics. Easiest to just replace it if it doesn't.
2007-10-10 14:18:24 -05:00
Andrew Tridgell
025b142ff2 r18400: move MAP_FAILED define to lib/replace/system/shmem.h 2007-10-10 14:18:23 -05:00
Stefan Metzmacher
aca8a3f8c0 r18388: remove _XOPEN_SOURCE it causes trouble on BSD and IRIX
I need to find a way to define it only on Tru64 maybe.

metze
2007-10-10 14:18:23 -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
Stefan Metzmacher
8109eb9d28 r18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
sys/mman.h on Tru64

metze
2007-10-10 14:18:22 -05:00
Stefan Metzmacher
ec6365b5f1 r18381: make sure autoconf doesn't add '-O2' to CFLAGS
metze
2007-10-10 14:18:21 -05:00
Andrew Tridgell
03ed41515b r18378: try enabling _OSF_SOURCE to see if it fixes the tru64 build problems -
thanks to volker for the suggestion
2007-10-10 14:18:21 -05:00
Andrew Tridgell
3752cc2b57 r18359: better handling of child process killing in standard mode 2007-10-10 14:18:18 -05:00
Andrew Tridgell
eacb5357c3 r18353: try to fix the assumption of NULL being handled in printf()
permanently by replacing printf() on systems that don't have a C99
printf lib
2007-10-10 14:18:16 -05:00
Andrew Tridgell
e251c211f7 r18350: we have to check for lstat() to keep roken happen on hpux 2007-10-10 14:18:15 -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
f3b24ea48a r18340: some HPUX boxes don't have ptrdiff_t 2007-10-10 14:18:12 -05:00
Andrew Tridgell
e98e0a28a0 r18339: need these checks for roken.h on hpux 2007-10-10 14:18:12 -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
eb93fb8e54 r18336: autoconf tries to force on C89 mode on HP-UX, using the -Ae
flag. Unfortunately that flag conflicts with the -AC99 flag, and we
get lots of breakage.

This is a trick to force off the -Ae option
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
6ff100b266 r18332: added back in our shared mmap test code 2007-10-10 14:18:10 -05:00
Andrew Tridgell
449fab2c26 r18321: fixed some warnings on AIX 2007-10-10 14:18:08 -05:00
Andrew Tridgell
d082a3c5f5 r18304: fixed misuse of size_t in dopr() 2007-10-10 14:18:05 -05:00
Stefan Metzmacher
43970e6d08 r18292: import some autoconf 2.60 specific macros,
so that older autoconf versions still work

metze
2007-10-10 14:18:03 -05:00
Andrew Tridgell
46ab2b9971 r18289: don't check for inline till we've worked out the main compiler flags 2007-10-10 14:18:02 -05:00
Andrew Tridgell
b4b028e65e r18288: autoconf already has a C99 test builtin!
If this works well, we can remove our own test
2007-10-10 14:18:02 -05:00
Andrew Tridgell
2dc9239a36 r18287: add support for the -qlanglvl=extc99 and -qlanglvl=stdc99 flags,
needed on AIX 5.2 for C99 structures
2007-10-10 14:18:02 -05:00
Andrew Tridgell
3e0f262b38 r18284: enable _XOPEN_SOURCE_EXTENDED to fix a HP-UX bug with the definition
of sendfile()
2007-10-10 14:18:01 -05:00
Andrew Tridgell
03f9c67c06 r18283: libreplace.m4 needs to be early in configure.ac in other packages too 2007-10-10 14:18:01 -05:00
Andrew Tridgell
4860d02565 r18280: more portability tidyups, ensuring we use libreplace everywhere 2007-10-10 14:18:00 -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
d853dcfda7 r18221: moved more configure checks into lib/replace/ 2007-10-10 14:17:52 -05:00
Andrew Tridgell
50318dc55e r18219: move some more portability checks out of samba4 and info lib/replace 2007-10-10 14:17:52 -05:00
Andrew Tridgell
46f72d7e3f r18216: a special override for the broken HP-UX C compiler. It does support
C99 initialisers without any flags, but if you don't give it -AC99
then it dies when those initialisers are very complex
2007-10-10 14:17:51 -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
Stefan Metzmacher
159f745702 r18183: - add LIBREPLACE globaly and add LIBREPLACE_HOSTCC
- also specify USE_HOSTCC = YES on binaries that use HOSTCC

I also disable autodependecies as this change let make run forever,
I hopefully fix that tomorrow

metze
2007-10-10 14:17:47 -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
Stefan Metzmacher
47b4509db9 r18159: always recreate the the archive and use -s (which does the same as ranlib)
and see how portable it is

metze
2007-10-10 14:17:44 -05:00