[Fedora-directory-commits] ldapserver/ldap/servers/slapd/tools/ldclt Makefile, 1.1, 1.2 port.h, 1.1, 1.2

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Fri Jan 27 03:05:24 UTC 2006


Author: nhosoi

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/tools/ldclt
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29079

Modified Files:
	Makefile port.h 
Log Message:
[164596] LDCLT distributed with Directory Server
Fixed broken build on Solaris.
1) removed redeclared getsubopt in port.h
2) defined _XOPEN_SOURCE 500 for Linux 



Index: Makefile
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/tools/ldclt/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile	11 Jan 2006 01:54:30 -0000	1.1
+++ Makefile	27 Jan 2006 03:05:12 -0000	1.2
@@ -102,7 +102,11 @@
 
 ADDLIBS		= $(LDAPLIBS) $(SPEC_LIBS) $(SYSTEM_LIBS) $(END)
 
-CFLAGS+=-DLDAP_DONT_USE_SMARTHEAP 
+CFLAGS+=-DLDAP_DONT_USE_SMARTHEAP
+
+ifeq ($(ARCH), Linux)
+CFLAGS+=-D_XOPEN_SOURCE=500
+endif
 
 EXTRA_LIBS_DEP = $(LDAPSDK_DEP) $(DB_LIB_DEP) $(LDAP_COMMON_LIBS_DEP)
 


Index: port.h
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/tools/ldclt/port.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- port.h	11 Jan 2006 01:54:30 -0000	1.1
+++ port.h	27 Jan 2006 03:05:12 -0000	1.2
@@ -104,8 +104,6 @@
 
 #else /* _WIN32 */
 
-extern int	 getsubopt(char **optionp, char **tokens, char **valuep);
-
 /************************************************************************/
 /************************************************************************/
 /****************         Unix section            ***********************/




More information about the Fedora-directory-commits mailing list