1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

296 Commits

Author SHA1 Message Date
Jelmer Vernooij
a8eea9e946 lib/replace/test: Add missing include for prototype.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 19 16:45:56 CET 2011 on sn-devel-104
2011-03-19 16:45:56 +01:00
Jelmer Vernooij
f70a658b82 libreplace: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
Günther Deschner
9167d70e77 libreplace: move "struct timespec" checks into libreplace (where timespec is already used).
Bjoern, Metze, please check.

Guenther
2011-03-04 00:28:27 +01:00
Volker Lendecke
0fc1650e09 libreplace: poll based on select 2011-02-28 16:40:19 +01:00
Andrew Tridgell
e1f2442096 s3-waf: move the KRB5_DEPRECATED configure check out of lib/replace
this needs to be in souce3/, as otherwise it can't handle an in-tree
kerberos library

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-17 00:55:56 +01:00
Sumit Bose
d02b5cd655 replace: Add missing eval to m4 script
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 16:14:21 CET 2011 on sn-devel-104
2011-02-10 16:14:21 +01:00
Günther Deschner
6baa3ef648 waf: add clock_gettime clock ID checks to libreplace wscript.
Guenther
2011-02-07 13:21:50 +01:00
Andrew Tridgell
8b8caac6d0 build: removed the old autogen.sh and autogen-waf.sh scripts
for the builds that use waf only, these are no longer needed and just
cause confusion

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 15:03:40 +11:00
Stefan Metzmacher
1e42aa6b3a replace: Try to fix broken sys/capabilites.h on Linux.
As this is more or less a broken header we need to include linux/types.h
before sys/capabilities.h to avoid redefinitions.

Systems like ClearOS 5.2 need linux/types.h very early.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb  3 05:26:12 CET 2011 on sn-devel-104
2011-02-03 05:26:11 +01:00
Stefan Metzmacher
5f18925e69 Revert "replace: Try to fix broken sys/capabilites.h on Linux."
This reverts commit c2207e9b2c.

This still doesn't build for me on ClearOS 5.2.

metze
2011-02-03 04:32:43 +01:00
Andreas Schneider
c2207e9b2c replace: Try to fix broken sys/capabilites.h on Linux.
As this is more or less a broken header we need to include linux/types.h
before sys/capabilities.h to avoid redefinitions.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Feb  2 11:57:04 CET 2011 on sn-devel-104
2011-02-02 11:57:04 +01:00
Andrew Tridgell
005c6370cd waf: ensure "make dist" works from a clean git tree for all libraries
this uses a temporary waf lock file to force the build directory

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Jan  8 02:35:22 CET 2011 on sn-devel-104
2011-01-08 02:35:22 +01:00
Matthias Dieter Wallnöfer
da78e24ca2 lib/replace/testsuite.c - fix test output 2010-12-23 12:42:37 +01:00
Matthieu Patou
93ea5cb6f0 change searched name from _ss_family to __ss_family
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Dec 12 20:05:23 CET 2010 on sn-devel-104
2010-12-12 20:05:23 +01:00
Matthieu Patou
864335ec18 build: add a check for _ss_family as it used on aix to replace ss_family 2010-12-12 12:07:39 +03:00
Matthieu Patou
993b4aa07e replace: add comments to make the #ifdef/#else/endif more readable 2010-12-12 12:07:38 +03:00
Matthieu Patou
617871ee28 build: add a dependency on lib iconv for lib intl if we are not able to find it
This is due that on some platform lib intl depend on lib iconv, failling
to provide this library cause waf to be unable to link with lib intl and
makes it think that the library doesn't exists !
2010-12-11 19:21:09 +03:00
Matthias Dieter Wallnöfer
7128c15b65 replace:wscript - reintroduce the size check for "bool" due to a request of metze 2010-11-28 16:38:16 +01:00
Matthias Dieter Wallnöfer
3c0725001e replace:wscript - change the "bool" checks to be compatible with more platforms
- If the type was found then we are fine and define "HAVE_BOOL"
- Othewise we substitute it in "replace.h" as "_Bool" or if not possible as "int"
- This prevents lot of warnings on platforms where we don't have a "bool" type as Tru64
- The length check for "bool" is not really useful and therefore removed
2010-11-28 16:38:16 +01:00
Matthias Dieter Wallnöfer
ef8349e28d replace:wscript - reintroduce the size check for "bool" due to a request of metze
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Nov 28 15:48:40 CET 2010 on sn-devel-104
2010-11-28 15:48:40 +01:00
Matthias Dieter Wallnöfer
b028a6001a replace:wscript - change the "bool" checks to be compatible with more platforms
- If the type was found then we are fine and define "HAVE_BOOL"
- Othewise we substitute it in "replace.h" as "_Bool" or if not possible as "int"
- This prevents lot of warnings on platforms where we don't have a "bool" type as Tru64
- The length check for "bool" is not really useful and therefore removed
2010-11-28 13:33:19 +01:00
Andrew Tridgell
14718a725b build: a more portable way of finding waf in makefiles
this avoids using the non-portable shell command in makefiles

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Nov  3 22:44:59 UTC 2010 on sn-devel-104
2010-11-03 22:44:59 +00:00
Stefan Metzmacher
d1dd2117db replace/wscript: add size checks for stdint.h types
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov  3 19:12:39 UTC 2010 on sn-devel-104
2010-11-03 19:12:39 +00:00
Stefan Metzmacher
f5a6c1e6dc replace/wscript: do the size checks directly after the type checks
metze
2010-11-03 18:31:16 +00:00
Stefan Metzmacher
811a36282a replace/wscript: define bool to int instead of off_t
metze
2010-11-03 18:31:16 +00:00
Stefan Metzmacher
3dcec24173 replace/wscript: check for uint8_t
metze
2010-11-03 18:31:16 +00:00
Jelmer Vernooij
d5883c8d00 replace/talloc: Avoid automatically pulling in new configure/Makefile,
as these files are checked in, and the source might not be available.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 22:27:56 UTC 2010 on sn-devel-104
2010-10-31 22:27:56 +00:00
Jelmer Vernooij
c402e75be9 replace: Look harder for waf. 2010-10-31 17:24:04 +00:00
Jelmer Vernooij
f99c009b61 replace: Build using waf by default.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:45:21 UTC 2010 on sn-devel-104
2010-10-31 02:45:21 +00:00
Jelmer Vernooij
4dee76f1cd replace: Fix formatting.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct 30 16:32:15 UTC 2010 on sn-devel-104
2010-10-30 16:32:15 +00:00
Jelmer Vernooij
d1eba07e54 replace: Avoid autoproto as it breaks standalone builds.
Automatic prototype generation uses ../../source4/script/mkproto.pl.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-30 17:49:41 +02:00
Jelmer Vernooij
58e99ae916 replace: Only build replace-test in standalone build.
This allows turning libreplace-test back into a subsystem.
2010-10-30 17:49:38 +02:00
Andrew Tridgell
d6299d2667 replace: create a private replace-test library
used by replace_testuite and smbtorture
2010-10-30 23:48:59 +11:00
Matthieu Patou
62eb450bc2 replace: restore the order for #define + rep_strtoll 2010-10-26 23:59:55 +04:00
Jelmer Vernooij
49ef288819 waf: Rename some BUNDLED_ functios to PRIVATE_. 2010-10-23 22:24:06 +00:00
Stefan Metzmacher
96601cab1c lib/replace: use snprintf() in test code to avoid warnings in the IBM-Checker
metze
2010-10-23 08:49:29 +02:00
Stefan Metzmacher
d65896cc3c lib/replace: fix rep_strtoull() prototype
metze
2010-10-23 08:49:28 +02:00
Matthieu Patou
4ea7d4694a replace: use replace for non 'samba' compliant strptime 2010-10-22 01:00:54 +04:00
Matthieu Patou
2d0ac59fcc replace: use a wrapper around strtoll if it didn't behave as expected 2010-10-22 01:00:53 +04:00
Andrew Tridgell
a913e79ee5 replace: make libreplace a private library
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-21 19:03:24 +11:00
Andrew Tridgell
ec90b249ec replace: cope with systems that have fdatasync(), but don't have the prototype
this is needed for MacOSX 10.4.1
2010-10-19 11:22:35 +11:00
Björn Jacke
9b73bb0099 libreplace: fix endless strerror_r has been redefined warnings on AIX 2010-09-22 11:18:59 -07:00
Björn Jacke
9c00fb4aa6 libreplace: use CLOCK_HIGHRES when available
in Solaris 8 CLOCK_HIGHRES was the (only) name for CLOCK_MONOTONIC
2010-09-14 22:11:59 +02:00
Matthias Dieter Wallnöfer
ea3f21dff6 lib/replace/wscript:Tru64 build - Better use version 600 for _XOPEN_SOURCE
This means we request the "Single UNIX Specification, Version 3" with C99
compatibility as the Python 2.5 release on the system. This prevents
redefinitions with different values.

> [ 451/1918] Compiling scripting/python/pyglue.c
> cc: Warning: /usr/local/include/python2.5/pyconfig.h, line 951: The redefinition of the macro "_XOPEN_SOURCE" conflicts with a current definition because the replacement lists differ.  The redefinition is now in effect. (macroredef)
> #define _XOPEN_SOURCE 600
> ----------------------^
> cc: Warning: default/source4/include/config.h, line 54: The redefinition of the macro "_XOPEN_SOURCE" conflicts with a current definition because the replacement lists differ.  The redefinition is now in effect. (macroredef)
> #define _XOPEN_SOURCE 500
> ----------------------^
2010-09-11 17:23:55 +02:00
Matthias Dieter Wallnöfer
2442d25636 lib/replace:wscript - additional attempt to fix the build on Tru64
Obviously we really need both definitions ("socklen_t" has been found by
"_XOPEN_SOURCE"=500). But now FIONREAD wasn't accessible.
2010-09-11 12:18:33 +02:00
Matthias Dieter Wallnöfer
b8f28c2e70 lib/replace:wscript - don't check twice for type "bool" 2010-09-11 09:16:22 +02:00
Matthias Dieter Wallnöfer
ae5d807725 lib/replace:wscript - attempt to fix the features detection on Tru64
Hopefully now we detect the built-in "socklen_t"

https://bugs.internet2.edu/jira/browse/SSPCPP-114
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN5/0001____.HTM
2010-09-11 09:16:22 +02:00
Björn Jacke
e2de1b8e71 libreplace: clock_gettime sets errno 2010-09-10 23:10:26 +02:00
Björn Jacke
7c88ccde30 replace/waf: add rt to deps at this place 2010-08-31 11:33:22 +02:00
Björn Jacke
63b1f2ee81 libreplace: make a define for a best effort monotonic clock 2010-08-31 10:24:37 +02:00