All of lore.kernel.org
 help / color / mirror / Atom feed
* [autofs4 patch] Define LDAP_DEPRECATED in the build
@ 2006-11-09  1:46 Jeff Moyer
  2006-11-09  2:35 ` Ian Kent
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Moyer @ 2006-11-09  1:46 UTC (permalink / raw)
  To: Ian Kent, autofs mailing list

Without this, newer 64 bit installs will have problems with the
sources (since return codes default to int's).

-Jeff

diff --git a/lib/Makefile b/lib/Makefile
index a35b208..148828d 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -18,7 +18,8 @@ OBJS = cache.o mount_clnt.o mount_xdr.o 
 LIB = autofs.a
 NSSWITCH = nsswitch
 
-CFLAGS += -I../include -fPIC -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED
+CFLAGS += -I../include -fPIC -D_GNU_SOURCE -DHAVE_TCP_WRAPPER \
+	-DNFS3_SUPPORTED -DLDAP_DEPRECATED
 
 .PHONY: all install clean
 
diff --git a/modules/Makefile b/modules/Makefile
index f87721a..e37d980 100644
--- a/modules/Makefile
+++ b/modules/Makefile
@@ -87,7 +87,7 @@ lookup_hesiod.so: lookup_hesiod.c
 	$(STRIP) lookup_hesiod.so
 
 lookup_ldap.so: lookup_ldap.c
-	$(CC) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \
+	$(CC) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -DLDAP_DEPRECATED -o lookup_ldap.so \
 		lookup_ldap.c $(AUTOFS_LIB) $(LIBLDAP)
 	$(STRIP) lookup_ldap.so
 
diff --git a/samples/Makefile b/samples/Makefile
index d69d6e7..029ea9e 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -10,7 +10,7 @@ ifeq ($(LDAP), 1)
   BINS = autofs-ldap-auto-master
 endif
 
-CFLAGS += -I../include
+CFLAGS += -I../include -DLDAP_DEPRECATED
 LIBS = -lldap -llber
 
 all: $(BINS) rc.autofs

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-09  2:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09  1:46 [autofs4 patch] Define LDAP_DEPRECATED in the build Jeff Moyer
2006-11-09  2:35 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.