hc
2023-12-06 d38611ca164021d018c1b23eee65bbebc09c63e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 745e355ac8b595a27e1fcca75bf01d3e244f4a5f Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 7 Sep 2017 22:22:31 -0700
Subject: [PATCH] modules/lookup_multi.c: Replace __S_IEXEC with S_IEXEC
 
__S_IEXEC is internal to libc and may not be available on
all libc e.g. musl
 
Signed-off-by: Khem Raj <raj.khem@gmail.com>
 
---
 modules/lookup_multi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/modules/lookup_multi.c b/modules/lookup_multi.c
index 3ecda6d..cf109de 100644
--- a/modules/lookup_multi.c
+++ b/modules/lookup_multi.c
@@ -452,7 +452,7 @@ int lookup_reinit(const char *my_mapfmt,
                     continue;
                 }
 
-                if (st.st_mode & __S_IEXEC)
+                if (st.st_mode & S_IEXEC)
                     type = src_prog;
                 else
                     type = src_file;