summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-12 22:11:24 +0000
committerJeremy Allison <jra@samba.org>1998-05-12 22:11:24 +0000
commitee9a61841ac10d32d869a3893bc690c66f2bb1bb (patch)
tree451b75c7fd0b01a97dd9ef1285160d09c3a7d6c7 /source3/include
parent785d23c6cb1f79dfc3e7db7b39e5ee51739ac737 (diff)
downloadsamba-ee9a61841ac10d32d869a3893bc690c66f2bb1bb.tar.gz
samba-ee9a61841ac10d32d869a3893bc690c66f2bb1bb.tar.bz2
samba-ee9a61841ac10d32d869a3893bc690c66f2bb1bb.zip
includes.h: SunOS doesn't have strcasecmp, solaris versions prior to 2.6 don't
have vsnprintf. locking_slow.c: slight tidy. make_smbcodepage.c: Use safe_strcpy instead of pstrcpy. nmbd_winsserver.c: Use pstrcpy instead of fstrcpy. smbmount.c: Fixed reported bug. util.c: Removed old fstrcpy/fstrcat functions. Jeremy. (This used to be commit f257d2e4bafd3944cca737699913a8d868279ca6)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h5
-rw-r--r--source3/include/proto.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index d345ea38de..ae073d1df8 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -263,6 +263,7 @@ Here come some platform specific sections
#include <sys/acct.h>
#include <sys/vfs.h>
#include <string.h>
+#include <strings.h>
#include <errno.h>
#include <sys/wait.h>
#include <signal.h>
@@ -291,6 +292,7 @@ typedef unsigned short mode_t;
#define USE_SYSV_IPC
/* SunOS doesn't have POSIX atexit */
#define atexit on_exit
+#define NOSTRCASECMP
#endif
@@ -335,7 +337,6 @@ extern int innetgr (const char *, const char *, const char *, const char *);
#ifndef QSORT_CAST
#define QSORT_CAST (int (*)(const void *, const void *))
#endif /* QSORT_CAST */
-#define HAVE_VSNPRINTF
#endif
@@ -1372,7 +1373,7 @@ extern int errno;
#ifdef sprintf
#undef sprintf
#endif /* sprintf */
-#define sprintf __ERROR__XX__NEVER_USE_SPRINTF__>;
+#define sprintf __ERROR__XX__NEVER_USE_SPRINTF__;
#define pstrcpy(d,s) safe_strcpy((d),(s),sizeof(pstring)-1)
#define pstrcat(d,s) safe_strcat((d),(s),sizeof(pstring)-1)
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 79d46b1e4b..e574861b65 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -860,10 +860,6 @@ void make_wks_r_query_info(WKS_R_QUERY_INFO *r_u,
int status) ;
void wks_io_r_query_info(char *desc, WKS_R_QUERY_INFO *r_u, prs_struct *ps, int depth);
-/*The following definitions come from lib/rpc/server/srv_ldap_helpers.c */
-
-void ldap_helper_dummy(void);
-
/*The following definitions come from lib/rpc/server/srv_lsa.c */
BOOL api_ntlsa_rpc(pipes_struct *p, prs_struct *data);