Line
Link Here
|
0 |
-- a/configure.in |
0 |
++ b/configure.in |
Lines 191-197
Link Here
|
191 |
|
191 |
|
192 |
dnl Checks for header files. |
192 |
dnl Checks for header files. |
193 |
AC_HEADER_STDC |
193 |
AC_HEADER_STDC |
194 |
AC_CHECK_HEADERS(fcntl.h inttypes.h malloc.h stdint.h strings.h) |
194 |
AC_CHECK_HEADERS(fcntl.h inttypes.h malloc.h stdint.h strings.h bsd/string.h) |
195 |
AC_CHECK_HEADERS(sys/ioctl.h sys/time.h unistd.h) |
195 |
AC_CHECK_HEADERS(sys/ioctl.h sys/time.h unistd.h) |
196 |
AC_CHECK_HEADERS(windows.h winsock.h) |
196 |
AC_CHECK_HEADERS(windows.h winsock.h) |
197 |
|
197 |
|
Lines 209-215
Link Here
|
209 |
dnl Checks for library functions. |
209 |
dnl Checks for library functions. |
210 |
AC_TYPE_SIGNAL |
210 |
AC_TYPE_SIGNAL |
211 |
AC_CHECK_FUNCS(arc4random gettimeofday select strdup) |
211 |
AC_CHECK_FUNCS(arc4random gettimeofday select strdup) |
212 |
AC_REPLACE_FUNCS(getopt strlcat strlcpy) |
212 |
AC_REPLACE_FUNCS(getopt) |
|
|
213 |
AC_SEARCH_LIBS(strlcat, bsd) |
214 |
AC_REPLACE_FUNCS(strlcat) |
215 |
AC_SEARCH_LIBS(strlcpy, bsd) |
216 |
AC_REPLACE_FUNCS(strlcpy) |
213 |
|
217 |
|
214 |
dnl Set system-wide configuration file. |
218 |
dnl Set system-wide configuration file. |
215 |
FRAGROUTE_CONF=`eval echo ${sysconfdir}/fragroute.conf` |
219 |
FRAGROUTE_CONF=`eval echo ${sysconfdir}/fragroute.conf` |
216 |
-- a/iputil.h |
220 |
++ b/iputil.h |
Lines 1-5
Link Here
|
1 |
#ifndef IPUTIL_H |
1 |
#ifndef IPUTIL_H |
2 |
#define IPUTIL_H |
2 |
#define IPUTIL_H |
|
|
3 |
#include <stdio.h> |
4 |
#include <stdint.h> |
3 |
|
5 |
|
4 |
ssize_t inet_add_option(uint16_t eth_type, void *buf, size_t len, |
6 |
ssize_t inet_add_option(uint16_t eth_type, void *buf, size_t len, |
5 |
int proto, const void *optbuf, size_t optlen); |
7 |
int proto, const void *optbuf, size_t optlen); |
6 |
-- a/mod.c |
8 |
++ b/mod.c |
Lines 13-18
Link Here
|
13 |
#include <stdio.h> |
13 |
#include <stdio.h> |
14 |
#include <stdlib.h> |
14 |
#include <stdlib.h> |
15 |
#include <string.h> |
15 |
#include <string.h> |
|
|
16 |
#if HAVE_BSD_STRING_H |
17 |
#include <bsd/string.h> |
18 |
#endif /* HAVE_BSD_STRING_H */ |
16 |
|
19 |
|
17 |
#include "argv.h" |
20 |
#include "argv.h" |
18 |
#include "mod.h" |
21 |
#include "mod.h" |
19 |
-- a/tun-loop.c |
22 |
++ b/tun-loop.c |
Lines 18-23
Link Here
|
18 |
#include <string.h> |
18 |
#include <string.h> |
19 |
#include <unistd.h> |
19 |
#include <unistd.h> |
20 |
|
20 |
|
|
|
21 |
#if HAVE_BSD_STRING_H |
22 |
#include <bsd/string.h> |
23 |
#endif /* HAVE_BSD_STRING_H */ |
24 |
|
21 |
#include <dnet.h> |
25 |
#include <dnet.h> |
22 |
#include <event.h> |
26 |
#include <event.h> |
23 |
#include <pcap.h> |
27 |
#include <pcap.h> |