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

r20777: only include closefrom.c if the system doesn't have it.

hopefully solaris build fine now...

metze
(This used to be commit f9a6649f08)
This commit is contained in:
Stefan Metzmacher 2007-01-14 18:48:14 +00:00 committed by Gerald (Jerry) Carter
parent 47523dbc6a
commit dbdb4cc269
2 changed files with 11 additions and 1 deletions

View File

@ -253,6 +253,12 @@ fi
SMB_EXT_LIB(NSL,[${NSL_LIBS}],[],[],[])
# only add closefrom if needed
SMB_ENABLE(HEIMDAL_ROKEN_CLOSEFROM, NO)
if test t$ac_cv_func_closefrom != tyes; then
SMB_ENABLE(HEIMDAL_ROKEN_CLOSEFROM, YES)
fi
# only add getprogname if needed
SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME, NO)
SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME_H, NO)

View File

@ -368,6 +368,10 @@ OBJ_FILES = ../heimdal/lib/roken/inet_aton.o
CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
OBJ_FILES = ../heimdal/lib/roken/getprogname.o
[SUBSYSTEM::HEIMDAL_ROKEN_CLOSEFROM]
CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
OBJ_FILES = ../heimdal/lib/roken/closefrom.o
[SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME_H]
CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
OBJ_FILES = ../heimdal/lib/roken/getprogname.ho
@ -394,7 +398,6 @@ OBJ_FILES = \
../heimdal/lib/roken/base64.o \
../heimdal/lib/roken/hex.o \
../heimdal/lib/roken/bswap.o \
../heimdal/lib/roken/closefrom.o \
../heimdal/lib/roken/dumpdata.o \
../heimdal/lib/roken/emalloc.o \
../heimdal/lib/roken/get_window_size.o \
@ -425,6 +428,7 @@ PUBLIC_DEPENDENCIES = \
HEIMDAL_ROKEN_GAI_STRERROR \
HEIMDAL_ROKEN_INET_ATON \
HEIMDAL_ROKEN_GETPROGNAME \
HEIMDAL_ROKEN_CLOSEFROM \
GAI \
NSL \
RESOLV \