[PATCH] Include netinet/in.h in libbb.h

Shaun Jackman sjackman at gmail.com
Sat Jun 3 18:25:36 UTC 2006


On 7/25/05, Rob Landley <rob at landley.net> wrote:
...
> But applied anyway...
>
> Rob

This patch was never applied; please apply it now.

libbb.h uses struct sockaddr_in which is defined in netinet/in.h but
never included.

Cheers,
Shaun

2005-04-05  Shaun Jackman  <sjackman at gmail.com>

        * include/libbb.h: Include netinet/in.h for struct sockaddr_in.

Index: include/libbb.h
===================================================================
--- include/libbb.h     (revision 15270)
+++ include/libbb.h     (working copy)
@@ -17,6 +17,7 @@
 #include <dirent.h>
 #include <inttypes.h>
 #include <netdb.h>
+#include <netinet/in.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
===================================================================

  CC applets/applets.o
In file included from
/home/sjackman/work/pathway/busybox/busybox-vfork/include/busybox.h:12,
                 from
/home/sjackman/work/pathway/busybox/busybox-vfork/applets/applets.c:15:
/home/sjackman/work/pathway/busybox/busybox-vfork/include/libbb.h:312:
warning:'struct sockaddr_in' declared inside parameter list
/home/sjackman/work/pathway/busybox/busybox-vfork/include/libbb.h:312:
warning:its scope is only this definition or declaration, which is
probably not what you want
/home/sjackman/work/pathway/busybox/busybox-vfork/include/libbb.h:314:
warning:'struct sockaddr_in' declared inside parameter list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-netinet-in.h
Type: text/x-chdr
Size: 447 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060603/074dbc58/attachment.h 


More information about the busybox mailing list