summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/semaping.c
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-23 19:01:09 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-23 19:01:09 +0000
commit149d2ffa779826cb48a381099858e76e4624d471 (patch)
tree1adb922c55da8094039ea14f4b2178314d51f2a1 /nsprpub/pr/tests/semaping.c
parent25b6703e956a33e0ecd8bdc18f423e5eb5dd09d4 (diff)
downloadUXP-149d2ffa779826cb48a381099858e76e4624d471.tar
UXP-149d2ffa779826cb48a381099858e76e4624d471.tar.gz
UXP-149d2ffa779826cb48a381099858e76e4624d471.tar.lz
UXP-149d2ffa779826cb48a381099858e76e4624d471.tar.xz
UXP-149d2ffa779826cb48a381099858e76e4624d471.zip
Issue #1693 - Update NSPR to 4.29
Diffstat (limited to 'nsprpub/pr/tests/semaping.c')
-rw-r--r--nsprpub/pr/tests/semaping.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/nsprpub/pr/tests/semaping.c b/nsprpub/pr/tests/semaping.c
index 2f31bd0bc..3b653d524 100644
--- a/nsprpub/pr/tests/semaping.c
+++ b/nsprpub/pr/tests/semaping.c
@@ -8,9 +8,20 @@
#include <stdio.h>
-#define SHM_NAME "/tmp/counter"
-#define SEM_NAME1 "/tmp/foo.sem"
-#define SEM_NAME2 "/tmp/bar.sem"
+#ifdef DEBUG
+#define SEM_D "D"
+#else
+#define SEM_D
+#endif
+#ifdef IS_64
+#define SEM_64 "64"
+#else
+#define SEM_64
+#endif
+
+#define SHM_NAME "/tmp/counter" SEM_D SEM_64
+#define SEM_NAME1 "/tmp/foo.sem" SEM_D SEM_64
+#define SEM_NAME2 "/tmp/bar.sem" SEM_D SEM_64
#define EXE_NAME "semapong"
#define SEM_MODE 0666
#define SHM_MODE 0666