Michael Adam
ff311e6132
libreplace: standalone build: use -I$srcdir instead of -I.
...
Michael
2008-02-27 10:34:09 +01:00
Michael Adam
e7c1d6513b
libreplace: fix standalone build - add necessary libs.
...
The libs needed for getifaddrs replacements have to be added
to LIBS and used for the testsuite target.
Michael
2008-02-27 01:41:30 +01:00
Michael Adam
cd95c702ed
libreplace: fix standalone build on some systems.
...
getifaddr tests include system/network.h, which does not
find getaddrinfo.h without "-I.".
Michael
2008-02-27 01:29:12 +01:00
Michael Adam
900d17acb9
libreplace: Add tests for connect and gethostbyname.
...
Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.
One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.
Michael
2008-02-26 16:41:09 +01:00
Michael Adam
8a26a6e8f1
Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
...
Michael
2008-02-26 12:01:39 +01:00
Michael Adam
a83db886e5
libreplace: don't use socketwrapper for getifaddrs() implementations.
...
Michael
(cherry picked from commit 85eec1d1d6 )
2008-02-22 14:33:51 +01:00
Michael Adam
0440bcfe63
libreplace: Fix comment originating from old samba source.
...
Michael
2008-02-22 10:42:22 +01:00
Michael Adam
e00c6513e0
libreplace: fix creation of conftest files for getifaddrs tests.
...
Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE.
Michael
(cherry picked from commit 26e6ebc709 )
2008-02-22 00:41:02 +01:00
Michael Adam
744d5ba7ad
Fix linked list of ifaddrs in implementations of rep_getifaddrs.
...
Produce proper list instead of one-node-loop.
Michael
(cherry picked from commit ec9f4f5066 )
2008-02-22 00:40:53 +01:00
Michael Adam
5bd613a2cd
Add missing initalizations of lastif in rep_getifaddr implementations.
...
Michael
(cherry picked from commit 65710e752f )
2008-02-22 00:40:33 +01:00
Michael Adam
4da2d999a2
libreplace: fix compile errors in getifaddrs.c
...
Michael
(cherry picked from commit 22cdd4cb50 )
2008-02-21 18:30:22 +01:00
Michael Adam
0d4522a06d
Try and fix getifaddrs check on irix: dont't try to include config.h
...
The missing header file is judged "catastrophic" on irix.
Michael
(cherry picked from commit 5778c90819 )
2008-02-21 18:18:11 +01:00
Jelmer Vernooij
53c70b5f77
Support dlopen(NULL, ...) on HPUX.
2008-02-20 20:05:51 +01:00
Michael Adam
83387ecccf
libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.
...
Michael
2008-02-20 12:53:20 +01:00
Michael Adam
00c173bfba
libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.
...
Michael
2008-02-20 12:53:20 +01:00
Michael Adam
d3b3d3ec9f
libreplace: change samba_cv_ to libreplace_cv_ in getpass.m4.
...
Michael
2008-02-20 12:53:20 +01:00
Michael Adam
acab9def2a
libreplace: change samba_cv_ to libreplace_cv_ in getifaddrs.m4
...
Michael
2008-02-20 12:53:19 +01:00
Volker Lendecke
e8f3653414
NetBSD does not support AI_ADDRCONFIG
...
(cherry picked from commit fb3f7f4046 )
2008-02-20 10:21:58 +01:00
Volker Lendecke
4c77550d80
NetBSD needs LD_LIBRARY_PATH
...
(cherry picked from commit d64b19e77a )
2008-02-20 10:21:57 +01:00
Michael Adam
d10cbb533c
Remove relict SAMBA_CONFIGURE_CPPFLAGS from lib/replace.
...
Michael
2008-02-19 17:25:42 +01:00
Stefan Metzmacher
d2ac8be28d
libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
...
metze
(cherry picked from commit 2f46091511 )
2008-01-22 12:24:05 +01:00
Jeremy Allison
9cff25cce1
Fix bug #5121 (unix passwd sync not working on a streams based
...
system).
Jeremy.
(lib/replace part of 545cd2139c metze)
2008-01-15 14:27:12 +01:00
Jeremy Allison
9f5c443972
Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
...
- slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars.
Jeremy.
(lib/replace part of 657bf8c347 metze)
2008-01-15 14:02:34 +01:00
Volker Lendecke
8db9e19650
Fix bug 5055
...
(lib/replace part of 8bcd2df841 metze)
2008-01-15 13:42:53 +01:00
Jeremy Allison
db4eabf7cd
Add MAX_DNS_NAME_LENGTH, remove more pstrings.
...
Jeremy.
(lib/replace part of a1725f4ff7 metze)
2008-01-15 13:41:37 +01:00
Jeremy Allison
ebc08d23f7
Always define PATH_MAX. Makes code simpler (removes
...
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
(lib/replace part from e203ba2227 metze)
2008-01-15 13:37:37 +01:00
Jelmer Vernooij
df36c78549
libreplace: Escape asterisk.
2008-01-14 22:24:07 +01:00
Jelmer Vernooij
bba8914af5
Try to fix the build on Tru64; avoid single quotes because they get expanded by perl in the build system.
2008-01-13 04:46:11 +01:00
Jelmer Vernooij
37c7b65546
r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
2007-12-21 06:28:52 +01:00
James Peach
188156228b
r26551: Make sure NULL is defined before using it to test for getifaddrs().
...
Patch from Timur I. Bakeyev <timur@com.bat.ru >.
2007-12-21 06:28:50 +01:00
Stefan Metzmacher
11bdc9bed8
r26550: libreplace: fallback to __ss_family of struct sockaddr_storage
...
metze
2007-12-21 06:28:49 +01:00
Jelmer Vernooij
6ac86f8be7
r26540: Revert my previous commit after concerns raised by Andrew.
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
e53e79eebe
r26539: Remove unnecessary statics.
2007-12-21 05:52:05 +01:00
Stefan Metzmacher
3d64338f3c
r26533: libreplace: hopefully fix the share library/module build on darwin
...
metze
2007-12-21 05:51:55 +01:00
Jelmer Vernooij
4fa04924ab
r26512: Another attempt at fixing darwin
2007-12-21 05:51:18 +01:00
Jelmer Vernooij
5dbe3aff3c
r26510: attempt to fix shld flags for darwin.
2007-12-21 05:51:14 +01:00
Jelmer Vernooij
cc873bdd2e
r26507: Fix function signature for freeifaddrs.
2007-12-21 05:51:13 +01:00
Jelmer Vernooij
8c65053f51
r26497: Fix return type for freeifaddrs().
2007-12-21 05:50:51 +01:00
Jelmer Vernooij
c9e5a3078f
r26495: Add defines for getifaddrs/freeifaddrs.
2007-12-21 05:50:49 +01:00
Jelmer Vernooij
c4cd935ee7
r26492: Some hosts have a define called ifa_dstaddr.
2007-12-21 05:50:47 +01:00
Jelmer Vernooij
2513230e28
r26491: Fix syntax.
2007-12-21 05:50:45 +01:00
Jelmer Vernooij
56080469ab
r26487: Cope with systems that don't have struct sockaddr.sa_len.
2007-12-21 05:50:44 +01:00
Jelmer Vernooij
51a78cfc3e
r26470: Update README.
2007-12-21 05:50:32 +01:00
Jelmer Vernooij
fa9e3b6fa8
r26469: Fix paths, only include IPv4 addresses for now.
2007-12-21 05:50:32 +01:00
Jelmer Vernooij
92898c043b
r26468: Match getifaddrs more closely, add trivial test.
2007-12-21 05:50:31 +01:00
Jelmer Vernooij
9b4924fbd8
r26467: Use getifaddrs() for interface enumeration and provide replacements for platforms that don't have it in lib/replace.
2007-12-21 05:50:31 +01:00
Michael Adam
df3e151992
r26255: Work around another broken aspect of sys/capability.h on RHEL5.
...
This is synced from samba3 v3-2-test/11bcdf780e164659b89:
The /usr/include/sys/capability.h defines _LINUX_TYPES_H
which prevents /usr/include/linux/types.h from being parsed
(when included afterwards). Thus certain types are undefined
that are for instance needed in /usr/include/linux/dqblk_xfs.h.
This breaks the build of lib/sysquotas_xfs.c in Samba3.
This commit adds a configure check and a workaround for this.
Michael
2007-12-21 05:47:30 +01:00
Michael Adam
dfdfac2b57
r26254: Add check for PPC statfs.h to workaround for broken capability.h.
...
Synced from Samba3.
Michael
2007-12-21 05:47:30 +01:00
Michael Adam
4d1df9c0b4
r26253: Add check for broken RedHat 7.2 system header files to lib/replace.
...
This is taken (with slight reformatting) from samba3:configure.in.
It is already used in lib/replace/system/capablity.h.
Michael
2007-12-21 05:47:30 +01:00
Stefan Metzmacher
1ecb4ec01b
r26102: libreplace: remove system/printing.h as it only contains samba3 stuff
...
metze
2007-12-21 05:46:04 +01:00