Browse Source

Merge pull request #5500 from remakeelectric/luaposix-xopen-rt

luaposix: musl compatibility with XOPEN_REALTIME
lilik-openwrt-22.03
Philip Prindeville 7 years ago
committed by GitHub
parent
commit
47cf9884f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lang/luaposix/Makefile

+ 3
- 0
lang/luaposix/Makefile View File

@ -44,6 +44,9 @@ CONFIGURE_VARS += ac_cv_path_LDOC="true"
TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) -std=gnu99
ifeq ($(CONFIG_USE_MUSL),y)
TARGET_CFLAGS += -D_POSIX_PRIORITY_SCHEDULING
# Musl doesn't do all of XOPEN_REALTIME, but it does for luaposix.
# see https://github.com/luaposix/luaposix/issues/295
TARGET_CFLAGS += -D_XOPEN_REALTIME=1
endif
ifneq ($(CONFIG_USE_GLIBC),)


Loading…
Cancel
Save