procd: uClibc O_PATH backwards compatibility fixes
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 12 Aug 2016 08:27:54 +0000 (10:27 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 12 Aug 2016 11:38:28 +0000 (13:38 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
inittab.c
utils/utils.c

index 6dde11af1a7ec9a1744b6fbd73e627f7061a840a..ae2c431223fb45ebd18860b93914573534dd8c96 100644 (file)
--- a/inittab.c
+++ b/inittab.c
 #include "procd.h"
 #include "rcS.h"
 
+#ifndef O_PATH
+#define O_PATH         010000000
+#endif
+
 #define TAG_ID         0
 #define TAG_RUNLVL     1
 #define TAG_ACTION     2
index 8f14aadc7903d241bb07253b2b02eff808d3f644..e239eda5110ec4e38b88880d7b7d24341389e85e 100644 (file)
 
 #include "../log.h"
 
+#ifndef O_PATH
+#define O_PATH         010000000
+#endif
+
 void
 __blobmsg_list_init(struct blobmsg_list *list, int offset, int len, blobmsg_list_cmp cmp)
 {