[BusyBox] Compile error with httpd

Steven Scholz steven.scholz at imc-berlin.de
Tue Feb 4 09:28:04 UTC 2003


Hi there,

I just pull the recent CVS and tried to build busybox with httpd:

...
ppc_8xx-gcc -I./include -Wall -Wstrict-prototypes -Wshadow -Os 
-fomit-frame-pointer -D_GNU_SOURCE     -c -o networking/httpd.o networking/httpd.c
networking/httpd.c: In function `sendCgi':
networking/httpd.c:811: storage size of `timeout' isn't known
networking/httpd.c:811: warning: unused variable `timeout'
make: *** [networking/httpd.o] Error 1
...

The following "patch" fixes that for me:

scholz at pinguin:~/Imports/busybox> diff -pu networking/httpd.c.orig 
networking/httpd.c
--- networking/httpd.c.orig     Tue Feb  4 17:22:47 2003
+++ networking/httpd.c  Tue Feb  4 17:23:49 2003
@@ -68,6 +68,7 @@ ip:127.0.0.1      # Allow local loopback
  #include <string.h>        /* for strerror          */
  #include <stdlib.h>        /* for malloc            */
  #include <time.h>
+#include <sys/time.h>
  #include <errno.h>
  #include <unistd.h>        /* for close             */
  #include <signal.h>


Thanks,

Steven




More information about the busybox mailing list