Просмотр исходного кода

2007-08-14 Wade Berrier <[email protected]>

       * serial.c: include sys/time.h for mac osx 10.3 for timeval


svn path=/trunk/mono/; revision=84116
Wade Berrier 18 лет назад
Родитель
Сommit
1dae9b6828
2 измененных файлов с 9 добавлено и 0 удалено
  1. 4 0
      support/ChangeLog
  2. 5 0
      support/serial.c

+ 4 - 0
support/ChangeLog

@@ -1,3 +1,7 @@
+2007-08-14  Wade Berrier  <[email protected]>
+
+	* serial.c: include sys/time.h for mac osx 10.3 for timeval
+
 2007-08-12  Lukasz Byczynski <[email protected]>
 
 	* serial.c:

+ 5 - 0
support/serial.c

@@ -20,6 +20,11 @@
 #include <sys/filio.h>
 #endif
 
+/* sys/time.h (for timeval) is required when using osx 10.3 (but not 10.4) */
+#ifdef __APPLE__
+#include <sys/time.h>
+#endif
+
 /* This is a copy of System.IO.Ports.Handshake */
 typedef enum {
 	NoneHandshake = 0,