Skip to content

Commit 8e1b036

Browse files
committed
Fix compile on Alpine linux
1 parent e35e6c8 commit 8e1b036

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

compat/closefrom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#endif
2828

2929
#include <fcntl.h>
30+
#include <limits.h>
3031
#include <unistd.h>
3132

3233
#if defined(__linux__) && defined(SYS_close_range)

configure

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,6 @@ EOF
12181218
rm -f _rbtree.c _rbtree
12191219
fi
12201220
if [ "$RBTREE" = no ]; then
1221-
echo "RBTREE_CPPFLAGS= -DRBLOCAL" >>$CONFIG_MK
12221221
echo "VENDOR_SRCS+= vendor/rbtree.c" >>$CONFIG_MK
12231222
# Tell rbtree.c to #include "rbtree.h" rather than sys/rbtree.h
12241223
echo "RBTREE_CPPFLAGS+= -DRBLOCAL" >>$CONFIG_MK

src/dev/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include ${TOP}/config.mk
55
CFLAGS?= -O2
66
CSTD?= c99
77
CFLAGS+= -std=${CSTD}
8-
CPPFLAGS+= -I${TOP} -I${TOP}/src
8+
CPPFLAGS+= -I${TOP} -I${TOP}/src -I${TOP}/vendor
99

1010
DEVDIR= ${LIBDIR}/dhcpcd/dev
1111
DSRC= ${DEV_PLUGINS:=.c}

src/if-linux-wext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if_getssid_wext(const char *ifname, uint8_t *ssid)
6969
int s, retval;
7070
struct iwreq iwr;
7171

72-
if ((s = xsocket(PF_INET, SOCK_DGRAM, 0)) == -1)
72+
if ((s = socket(PF_INET, SOCK_DGRAM, 0)) == -1)
7373
return -1;
7474
memset(&iwr, 0, sizeof(iwr));
7575
strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name));

0 commit comments

Comments
 (0)