Browse Source

luaposix: fix compatibility with musl

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
Maxim Storchak 9 years ago
parent
commit
76b5c2007d
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      lang/luaposix/Makefile

+ 4
- 1
lang/luaposix/Makefile View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=luaposix
11 11
 PKG_VERSION:=v33.2.1
12
-PKG_RELEASE:=4
12
+PKG_RELEASE:=5
13 13
 
14 14
 PKG_SOURCE:=release-$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_URL:=https://github.com/luaposix/luaposix/archive/
@@ -41,6 +41,9 @@ endef
41 41
 CONFIGURE_VARS += ac_cv_path_LDOC=""
42 42
 
43 43
 TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) -std=gnu99
44
+ifeq ($(CONFIG_USE_MUSL),y)
45
+  TARGET_CFLAGS += -D_POSIX_PRIORITY_SCHEDULING
46
+endif
44 47
 
45 48
 ifneq ($(CONFIG_USE_GLIBC),)
46 49
   ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)