config.mk: improve feature test check
2d2175ff
this fixes a crash on NetBSD because it requires -D_XOPEN_SOURCE (strdup, usleep). thanks k0ga and stateless for reporting and fixing this issue!
1 file(s) · +1 −1
this fixes a crash on NetBSD because it requires -D_XOPEN_SOURCE (strdup, usleep). thanks k0ga and stateless for reporting and fixing this issue!
| 23 | 23 | LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} |
|
| 24 | 24 | ||
| 25 | 25 | # flags |
|
| 26 | - | CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} |
|
| 26 | + | CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} |
|
| 27 | 27 | CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS} |
|
| 28 | 28 | LDFLAGS = -s ${LIBS} |
|
| 29 | 29 |