Changeset 124 for branches/samba-3.0/source/lib/replace
- Timestamp:
- Mar 12, 2008, 9:08:18 AM (17 years ago)
- Location:
- branches/samba-3.0/source/lib/replace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/replace/getpass.c
r1 r124 20 20 21 21 #include "replace.h" 22 23 #if defined(REPLACE_GETPASS_BY_GETPASSPHRASE) 24 25 #if defined(HAVE_STDIO_H) 26 #include <stdio.h> 27 #endif 28 29 char *getsmbpass(const char *prompt) 30 { 31 return getpassphrase(prompt); 32 } 33 34 #else /* !REPLACE_GETPASS_BY_GETPASSPHRASE */ 22 35 23 36 #if defined(HAVE_TERMIOS_H) … … 211 224 void getsmbpasswd_dummy(void) {;} 212 225 #endif 226 227 #endif /* REPLACE_GETPASS_BY_GETPASSPHRASE */ -
branches/samba-3.0/source/lib/replace/getpass.m4
r1 r124 1 AC_CHECK_FUNC(getpass, samba_cv_HAVE_GETPASS=yes) 2 AC_CHECK_FUNC(getpassphrase, samba_cv_HAVE_GETPASSPHRASE=yes) 3 if test x"$samba_cv_HAVE_GETPASS" = x"yes" -a x"$samba_cv_HAVE_GETPASSPHRASE" = x"yes"; then 4 AC_DEFINE(REPLACE_GETPASS_BY_GETPASSPHRASE, 1, [getpass returns <9 chars where getpassphrase returns <265 chars]) 5 AC_DEFINE(REPLACE_GETPASS,1,[Whether getpass should be replaced]) 6 LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o" 7 else 8 1 9 AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[ 2 10 SAVE_CPPFLAGS="$CPPFLAGS" … … 16 24 LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o" 17 25 fi 26 27 fi -
branches/samba-3.0/source/lib/replace/libreplace.m4
r30 r124 100 100 AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h) 101 101 AC_CHECK_HEADERS(sys/sockio.h sys/un.h) 102 102 AC_CHECK_HEADERS(stropts.h) 103 103 104 104 dnl we need to check that net/if.h really can be used, to cope with hpux -
branches/samba-3.0/source/lib/replace/system/network.h
r1 r124 75 75 #endif 76 76 77 #ifdef HAVE_STROPTS_H 78 #include <stropts.h> 79 #endif 80 77 81 #ifdef SOCKET_WRAPPER 78 82 #ifndef SOCKET_WRAPPER_NOT_REPLACE
Note:
See TracChangeset
for help on using the changeset viewer.