On Tue, 13 Apr 1999, [EMAIL PROTECTED] wrote:
>make[2]: Entering directory `/1/1/emu/dosemu/dosemu-0.99.9/src/tools/periph'
>pgcc -D_GNU_SOURCE -O5 -fomit-frame-pointer -mpentium -malign-loops=2
>-malign-jumps=2 -malign-functions=2 -MD -fno-gcse -DGCC_VERSION_CODE=2091
>-DASM_PEDANTIC -DGLIBC_VERSION_CODE=2000 -D_XOPEN_SOURCE -pipe -DUSING_NET  
>-Wall -I/1/1/emu/dosemu/dosemu-0.99.9/src/include
>-I/1/1/emu/dosemu/dosemu-0.99.9/src/dosext/dpmi
>-I/1/1/emu/dosemu/dosemu-0.99.9/src/include/slang -I/usr/X11R6/include   
>-Wl,-warn-common  dosctrl.c   -o dosctrl
>dosctrl.c: In function `main':
>dosctrl.c:152: invalid use of undefined type `struct timeval'
>dosctrl.c:153: invalid use of undefined type `struct timeval'
>dosctrl.c: At top level:
>dosctrl.c:54: storage size of `timeout' isn't known
>make[2]: *** [dosctrl] Error 1

This is bug in 0.99.9 when glibc-2.0.X or glibc-2.1 is being used. Upgrade
to dosemu-0.99.10 where it is fixed or apply following patch (already in
0.99.10)

Andris

--- src/tools/periph/dosctrl.c~1        Fri Feb 26 23:18:29 1999
+++ src/tools/periph/dosctrl.c  Sat Feb 27 17:52:55 1999
@@ -17,8 +17,12 @@
 #include <stdlib.h>
 #include <stdio.h>
 #if defined (__GLIBC__) && __GLIBC__ >= 2
-#define __needs_timeval
+#define __need_timeval
+#if __GLIBC__==2 && __GLIBC_MINOR__<1
 #include <timebits.h>
+#else
+#include <bits/time.h>
+#endif
 #endif
 #include <time.h>
 #include <sys/types.h>

Reply via email to