samba-2.0.6pre2 - problem compiling smbwrapper

Todd Pfaff pfaff at edge.cis.mcmaster.ca
Mon Nov 1 04:53:00 GMT 1999


Solaris 7
gcc-2.95.1

Compiling smbwrapper/wrapped.c with -fpic
smbwrapper/wrapped.c:466: conflicting types for `utimes'
/usr/include/sys/time.h:327: previous declaration of `utimes'

I've attached a patch that fixes the problem for me.

--
Todd Pfaff                         \  Email: pfaff at mcmaster.ca
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132                              \  FAX: (905) 528-3773
McMaster University                   \
Hamilton, Ontario, Canada  L8S 4M1     \
-------------- next part --------------
--- source/smbwrapper/wrapped.c.orig	Tue Feb 16 21:37:56 1999
+++ source/smbwrapper/wrapped.c	Sun Oct 31 23:30:09 1999
@@ -462,7 +462,7 @@
 #endif
 
 #ifdef HAVE_UTIMES
- int utimes(char *name,void *tvp)
+ int utimes(const char *name,const struct timeval *tvp)
 {
 	if (smbw_path(name)) {
 		return smbw_utimes(name, tvp);


More information about the samba-technical mailing list