Fixed inclusion of crypt.h bug when libdes is being used on Solaris
authorSamba Release Account <samba-bugs@samba.org>
Thu, 13 Feb 1997 20:49:12 +0000 (20:49 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Thu, 13 Feb 1997 20:49:12 +0000 (20:49 +0000)
only.
jra@cygnus.com

source/Makefile.RPM
source/include/includes.h

index 9425d4bfa39341c09f886dc538004d93a2495024..83cc38d056dce6bf6d2da14d322bf85701e0c917 100644 (file)
@@ -98,7 +98,7 @@ PAM_LIBS = -ldl -lpam
 # DES_BASE=/usr/local/libdes
 # DES_FLAGS= -I$(DES_BASE)
 # DES_LIB= -L$(DES_BASE) -ldes
-# PASSWD_FLAGS=-DSMB_PASSWD=\"$(BINDIR)/smbpasswd\" -DSMB_PASSWD_FILE=\"$(BASEDIR)/private/smbpasswd\"
+# PASSWD_FLAGS=-DUSE_LIBDES -DSMB_PASSWD=\"$(BINDIR)/smbpasswd\" -DSMB_PASSWD_FILE=\"$(BASEDIR)/private/smbpasswd\"
 
 ######################################
 # VTP-Support
index 0e93df35fd2eb9ec0d6b7347c4feedcdc2fc9efc..a8653d09788ccf97b03b37e1c8bd1f02bfd5f697 100644 (file)
@@ -290,8 +290,10 @@ typedef unsigned short mode_t;
 #include <string.h>
 #include <arpa/inet.h>
 #include <rpcsvc/ypclnt.h>
-#include <crypt.h> 
 #include <termios.h>
+#ifndef USE_LIBDES
+#include <crypt.h>
+#endif /* USE_LIBDES */
 extern int gettimeofday (struct timeval *, void *);
 extern int gethostname (char *name, int namelen);
 extern int innetgr (const char *, const char *, const char *, const char *);