Skip to content

Commit 97ce64a

Browse files
authored
Fixes "sockets" compilation issues
docker-library/php#1245 (comment)
1 parent d40677e commit 97ce64a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ RUN apk add \
2222
libxml2-dev \
2323
libxslt-dev
2424

25+
# fixes "sockets" compilation issues
26+
# sendrecvmsg.c:128:19: error: invalid application of 'sizeof' to incomplete type 'struct cmsgcred'
27+
#
28+
# see https://github.com/docker-library/php/issues/1245#issuecomment-1019957169
29+
ENV CFLAGS="$CFLAGS -D_GNU_SOURCE"
30+
2531
RUN docker-php-ext-install \
2632
bz2 \
2733
calendar \

0 commit comments

Comments
 (0)