Skip to content

Commit

Permalink
check for <arpa/inet.h> header
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Aug 12, 2014
1 parent cb01317 commit 4520589
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@
+----------------------------------------------------------------------+
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <stdint.h>
#include <stdint.h>
#include <limits.h>
#include <assert.h>
#include <string.h>
#include <stdarg.h>
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif

#include "bin_pack.h"
#include "bin_pack_endian.h"

#include <stdio.h>
#include <arpa/inet.h>

#ifdef CUBE_LIB_RCSID
static const char rcsid[] = "$Id: bin_pack.c, huqiu Exp $";
Expand Down
1 change: 1 addition & 0 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ if test "$PHP_BINPACK" != "no"; then
dnl
dnl PHP_SUBST(BINPACK_SHARED_LIBADD)

AC_CHECK_HEADERS([arpa/inet.h])
PHP_NEW_EXTENSION(binpack, bin_pack.c php_binpack.c, $ext_shared)

ifdef([PHP_INSTALL_HEADERS],
Expand Down

0 comments on commit 4520589

Please sign in to comment.