issue480: Missing #include in conkeror-spawn-helper.c on Mac OS X

Priority: bug Status: unread
msg1238 (view) Author: tjim Date: 2014-12-02.15:16:04
On Mac OS 10.9.5:

    cc conkeror.git/conkeror-spawn-helper.c -o
    conkeror.git/conkeror-spawn-helper.c:122:24: warning: implicit declaration of function 'inet_addr' is
invalid in C99
      sa.sin_addr.s_addr = inet_addr("");
1 warning generated.

The fix is to

    #include <arpa/inet.h>

I hesitate to suggest a patch b/c I don't have other OSs to test on.

Compiler is

Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Date User Action Args
2014-12-02 15:16:04tjimcreate