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

65 Commits

Author SHA1 Message Date
Andrew Tridgell
6dfd10f476 libreplace: added likely()/unlikely() macros for gcc
These macros allow the compile to better optimise code that has a lot
of if statements. I particularly want to use this for our low level
generated NDR code.
2009-09-17 15:19:25 -07:00
Björn Jacke
8703d9f5bf libreplace: white space cleanups 2009-09-15 20:26:24 +02:00
Matt Kraai
bd40feb1eb Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJ 2009-09-14 22:08:12 +02:00
Andrew Tridgell
2c846058ff LIBREPLACEOBJ now contains the full path 2009-08-24 16:30:00 +10:00
Andrew Tridgell
39cd5bbb33 make lib/replace more usable in standalone builds
This makes the lib/replace m4 work in lib/talloc as a standalone build
2009-08-24 16:30:00 +10:00
Andrew Tridgell
a5358402b2 fixed getpass m4
This allows the getpass.m4 code to work in standalone talloc builds
2009-08-24 16:30:00 +10:00
Matt Kraai
91d13b68be libreplace: undef AI_ADDRCONFIG on QNX 6.3.0 (fix bug #6630)
Some of the functions in source3/lib/util_sock.c use AI_ADDRCONFIG.  On QNX
6.3.0, this macro is defined but, if it's used, getaddrinfo will fail.  This
prevents smbd from opening any sockets.

If I undefine AI_ADDRCONFIG on such systems and allow
lib/replace/system/network.h to define it to be 0, this works around the issue.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-08-12 13:27:39 +02:00
Matt Kraai
e1a95e7961 libreplace: set SONAMEFLAG to "-Wl,-soname=" on QNX 2009-08-08 11:18:29 +02:00
Matt Kraai
dbedfc318e include unix.h if it's available 2009-07-19 15:59:03 +02:00
Björn Jacke
43887c8d71 libreplace: update library search path variables 2009-07-05 22:42:29 +02:00
Simo Sorce
f518e37c09 Add new replace check for --version-script
Allows us to pass an export files on Linux and Solaris so that we can expose
only symbols that are actually supposed to be global, and keep as local anything
else.
2009-06-15 16:31:12 -04:00
Andrew Bartlett
9b261c008a s4:heimdal: import lorikeet-heimdal-200906080040 (commit 904d0124b46eed7a8ad6e5b73e892ff34b6865ba)
Also including the supporting changes required to pass make test

A number of heimdal functions and constants have changed since we last
imported a tree (for the better, but inconvenient for us).

Andrew Bartlett
2009-06-12 07:45:48 +10:00
Andrew Tridgell
f7ba8ba5c3 try to get PICFLAG right for HP-UX with gcc 2009-06-09 14:18:58 +10:00
Timur I. Bakeyev
40178dd81e Add langinfo.h to the system/locale.h
This patch for Samba4. It's not really inspired by any real need, just
for the consistency. We define replace/system/locale.h as a generic
header, that includes all locale related headers and we are using
nl_langinfo at least in Samba3. So, it would be consistent to add yet
another locale-related header to the set of locale.h headers.

Here is the patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-08 13:20:51 +02:00
Stefan Metzmacher
bccef82516 replace: add fallback define for IOV_MAX
This hopefully fixes the build on IRIX.

metze
2009-06-08 09:40:11 +02:00
Günther Deschner
241db90c31 nss_wrapper: try to fix the build of nss_wrapper on solaris.
Guenther
2009-05-30 23:08:12 +02:00
Samuel Thibault
a0caffd446 Fix linker flags on non-Linux GNU platforms.
(e.g. Debian GNU/kFreeBSD)

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-05-16 04:05:53 +02:00
Jelmer Vernooij
6230eb94af Update copies of config.guess and config.sub. 2009-05-16 04:03:12 +02:00
Brad Hards
703d589770 Avoid using deprecated form of AC_CHECK_TYPE.
libreplace makes use of an older form of AC_CHECK_TYPE which basically
provides a fallback definition for the type if it isn't available.
http://www.gnu.org/software/hello/manual/autoconf/Obsolete-Macros.html#Obsolete-Macros
shows why this isn't a good idea (its not so important, except for pointer types).
This patch partly addresses the issue.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-04-22 10:36:47 +02:00
Jelmer Vernooij
bb0f430064 Error out at runtime when seteuid/setresuid or setegid/setresgid are not
available. This means it's possible to compile libreplace when these
functions are not available and use it, as long as this particular
function is not used.
2009-04-20 16:25:17 +02:00
Jelmer Vernooij
20e1ba1c09 Only define waitpid replacement if wait4 is available. (It isn't on
Windows.)
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
e5233ccf9e Cope with the fact that only _mkdir() exists on Windows and that it
doesn't take a mode argument.
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
fbf4293d7e Move check for syslog out of libreplace to source3/ and source4/.
This should help compiling talloc on Windows.
2009-04-20 16:25:16 +02:00
Michael Adam
33d9f46674 libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGS
This fixes Samba3's double listing of -I options in CFLAGS,
since samba3's configure wraps the call to AC_LIBREPLACE_NETWORK_CHECKS
into a SAVE_CPPFLAGS="${CPPFLAGS}" .. CPPFLAGS="${SAVE_CPPFLAGS}"
sequence... :-)

Michael
2009-03-23 17:48:23 +01:00
Timur
a3d04991ef build: fix detection of netinet/ip.h on FreeBSD
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Timur
e8aa7169a6 build: format the header check for netinet/ip.h more nicely
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Stefan Metzmacher
099d6f05cd lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are available
metze
2009-03-16 11:14:52 +01:00
Stefan Metzmacher
082bea67af lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
This should fix the build on some hosts.

metze
2009-03-11 08:08:14 +01:00
Stefan Metzmacher
c21ae8d1bf libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
metze
2009-02-26 10:48:10 +01:00
Jeremy Allison
faa1100d22 More warning fixes for Solaris.
Jeremy.
2009-02-23 16:22:43 -08:00
Björn Jacke
cd6ae0de52 all BSDs use this evironment variable
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-23 09:43:23 +01:00
Björn Jacke
dc9387ec42 enable IPv6 support for NetBSD, FreeBSD
most systems include netinet/in.h via netdb.h but *BSD don't.
2009-02-11 10:19:12 -08:00
Stefan Metzmacher
412b89afba lib/replace: move MAXHOSTNAMELEN to system/network.h
Some platforms define it in netdb.h, so we should
define the replace after including metdb.h.

metze
2009-01-31 09:32:14 +01:00
Stefan Metzmacher
c28952c555 lib/replace: check if we have dirfd()
Note: we only use this internally and don't replace it by default.

metze
2009-01-30 18:42:08 +01:00
Michael Adam
86ed67f073 libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.)

Michael
2009-01-27 15:48:54 +01:00
Michael Adam
cdab2a4127 libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris

Michael
2009-01-27 12:38:01 +01:00
Stefan Metzmacher
7fc7ee9331 lib/replace: add defines to let the callers find out if pwrite and pread are thread/fork safe
metze
2009-01-22 12:39:34 +01:00
Jeremy Allison
2234173220 Fix warnings in make test code.
Jeremy.
2009-01-02 11:38:24 -08:00
Jelmer Vernooij
bbc95fb1a8 ldb: Fix linking against tevent library (rather than events)
replace: Fix copyright for dlfcn.c.
2008-12-23 04:18:31 +01:00
Andreas Schneider
b39611c36b Fix circular dependency error with autoconf 2.6.3.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
2008-11-26 16:44:50 +01:00
Jelmer Vernooij
b327c0a2da Samba3: Remove more configure tests already done by libreplace. 2008-11-02 17:39:41 +01:00
Jelmer Vernooij
cd55fdd445 Fix return type of readlink(). 2008-11-01 04:36:24 +01:00
Jelmer Vernooij
31fa08dcbd Merge branch 'master' of /home/jelmer/samba3
Conflicts:
	lib/replace/README
	lib/replace/libreplace.m4
	lib/replace/replace.c
	source3/include/proto.h
	source3/lib/system.c
2008-11-01 04:02:47 +01:00
Jelmer Vernooij
5a56c0adf2 Use dup2() replacement from libreplace. 2008-11-01 03:58:14 +01:00
Jelmer Vernooij
6a2caa34b2 Remove sys_chroot() - libreplace already provides an alternative. 2008-11-01 03:46:09 +01:00
Jelmer Vernooij
a6d537bb6c Move sys_realpath() to libreplace. 2008-11-01 03:42:27 +01:00
Jelmer Vernooij
38d67363ac Move sys_lchown() to libreplace. 2008-11-01 03:39:20 +01:00
Jelmer Vernooij
e8cda43e17 Move sys_symlink() to libreplace. 2008-11-01 03:35:58 +01:00
Jelmer Vernooij
dbda9adfaf Move sys_readlink() to libreplace. 2008-11-01 03:33:39 +01:00
Jelmer Vernooij
bbbe6ab722 Move sys_link to libreplace. 2008-11-01 03:30:47 +01:00