From df15ea3f90cc6b16c1029ff9994b1f8ca5519d2c Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 10 Apr 2014 13:59:25 +0200 Subject: built_in: improved to define DEFFILEMODE if not provided by the libc musl libc doesn't provide the non-standard macros for common mode bit masks, which other libc implementations like glibc define in . Compile time error when building against musl libc: -------------------------------------------------------------------------- netsniff-ng.c: In function 'read_pcap': netsniff-ng.c:592:33: error: 'DEFFILEMODE' undeclared (first use in this function) -------------------------------------------------------------------------- This change improves built_in.h to check if DEFFILEMODE is defined and if not it defines it to be available internally. Signed-off-by: Christian Wiese Signed-off-by: Daniel Borkmann --- built_in.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/built_in.h b/built_in.h index d7d4b6b..a3b7bf8 100644 --- a/built_in.h +++ b/built_in.h @@ -406,4 +406,8 @@ static inline u64 cpu_to_le64(u64 val) # define PACKET_KERNEL 7 #endif +#ifndef DEFFILEMODE +# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /* 0666 */ +#endif + #endif /* BUILT_IN_H */ -- cgit v1.2.3-54-g00ecf alue='packet-rx-pump-back'>packet-rx-pump-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ModeNameSize
-rw-r--r--Makefile553logplain
-rw-r--r--emu10k1.c8791logplain
-rw-r--r--emu10k1_callback.c14646logplain
-rw-r--r--emu10k1_main.c69872logplain
-rw-r--r--emu10k1_patch.c6273logplain
-rw-r--r--emu10k1_synth.c3161logplain
-rw-r--r--emu10k1_synth_local.h1535logplain
-rw-r--r--emu10k1x.c48876logplain
-rw-r--r--emufx.c101572logplain
-rw-r--r--emumixer.c68824logplain
-rw-r--r--emumpu401.c11428logplain
-rw-r--r--emupcm.c58692logplain
-rw-r--r--emuproc.c21057logplain
-rw-r--r--io.c16190logplain
-rw-r--r--irq.c6754logplain
-rw-r--r--memory.c16163logplain
-rw-r--r--p16v.c29109logplain
-rw-r--r--p16v.h14922logplain