]> git.ozlabs.org Git - ppp.git/commitdiff
winbind plugin: Add -DMPPE=1 to eliminate compiler warnings
authorPaul Mackerras <paulus@samba.org>
Fri, 1 Aug 2014 11:40:18 +0000 (21:40 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 1 Aug 2014 11:40:18 +0000 (21:40 +1000)
When compiling the winbind plugin, we need an equivalent definition
of the MPPE symbol to that which applied when the main pppd was
compiled.  This adds that to Makefile.linux.

Reported-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/plugins/Makefile.linux

index 0a7ec7badb2a62ec71ed9343b3aa6ed07246b00d..ab8cf50d94729168f9b3cafa2d85788ba5b63349 100644 (file)
@@ -14,6 +14,13 @@ SUBDIRS := rp-pppoe pppoatm pppol2tp
 SUBDIRS += radius
 PLUGINS := minconn.so passprompt.so passwordfd.so winbind.so
 
 SUBDIRS += radius
 PLUGINS := minconn.so passprompt.so passwordfd.so winbind.so
 
+# This setting should match the one in ../Makefile.linux
+MPPE=y
+
+ifdef MPPE
+CFLAGS   += -DMPPE=1
+endif
+
 # include dependencies if present
 ifeq (.depend,$(wildcard .depend))
 include .depend
 # include dependencies if present
 ifeq (.depend,$(wildcard .depend))
 include .depend