Thanks for finding the problem by yourself, and I added the include of
systime.h if it exists. Did you try to do this yourself too?

I have updated the cvs. The small patches is included below too...
You have to run "./bootstrap --disable-swig" again since I updated
the configure template.

/Christian


On Sun, 2005-10-02 at 16:52, Ross Cathriner wrote:
> That was a big help and the make went much further, however the next  
> error is in ow_ds9490.c
> 
> I found where 'tm' was defined on time.h http://homepage.mac.com/rnc/
> time.h
> And a reference to timezone in systime.h http://homepage.mac.com/rnc/
> systime.h
> 
> Online man pages for Darwin can be found here: http:// 
> developer.apple.com/documentation/Darwin/Reference/ManPages/ 
> index.html#//apple_ref/doc/framework/manpages
> 
> 
> ow_ds9490.c: In function 'DS9490_next_both':
> ow_ds9490.c:919: error: storage size of 'tz' isn't known
> ow_ds9490.c:945: warning: comparison between signed and unsigned
> ow_ds9490.c:920: warning: unused variable 'now'
> ow_ds9490.c:920: warning: unused variable 'endtime'
> ow_ds9490.c:919: warning: unused variable 'tz'
> ow_ds9490.c:918: warning: unused variable 'tv'
> ow_ds9490.c: In function 'DS9490_HaltPulse':
> ow_ds9490.c:1147: error: storage size of 'tz' isn't known
> ow_ds9490.c:1147: warning: unused variable 'tz'
> make[4]: *** [ow_ds9490.lo] Error 1
> 

diff -ruw cvs/owfs/configure.ac owfs/configure.ac
--- cvs/owfs/configure.ac       2005-10-02 22:07:11.000000000 +0200
+++ owfs/configure.ac   2005-10-02 22:03:58.000000000 +0200
@@ -711,7 +711,7 @@
  
 AC_HEADER_DIRENT
 AC_HEADER_STDC
-AC_CHECK_HEADERS([sys/mkdev.h sys/time.h sys/types.h feature_tests.h
fcntl.h netinet/in.h stdlib.h string.h sys/file.h syslog.h termios.h
unistd.h limits.h stdint.h features.h getopt.h linux/limits.h
bits/netdb.h bits/siginfo.h])
+AC_CHECK_HEADERS([sys/mkdev.h sys/time.h sys/types.h systime.h
feature_tests.h
fcntl.h netinet/in.h stdlib.h string.h sys/file.h syslog.h termios.h
unistd.h limits.h stdint.h features.h getopt.h linux/limits.h
bits/netdb.h bits/siginfo.h])  
 # owftpd section
 AC_SUBST(HAVE_NEW_SS_FAMILY)


diff -ruw cvs/owfs/module/owlib/src/include/ow.h
owfs/module/owlib/src/include/ow.h
--- cvs/owfs/module/owlib/src/include/ow.h      2005-09-14
13:33:05.000000000 +0200
+++ owfs/module/owlib/src/include/ow.h  2005-10-02 22:03:11.000000000
+0200
@@ -95,6 +95,10 @@
 #else
 #include <time.h>
 #endif
+#ifdef HAVE_SYSTIME_H
+/* For MacOSX */
+#include <systime.h>
+#endif
 #include <termios.h>
 #include <errno.h>
 #include <syslog.h>






-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to