summaryrefslogtreecommitdiff
path: root/wm/i3/patches/patch-src_main.c
blob: 6d94c7bef0a26c87dbb7bc7c111481d2a9138176 (plain)
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
28
--- src/main.c.orig	2016-05-01 10:53:25.236039259 +0000
+++ src/main.c	2016-05-01 10:54:26.269651048 +0000
@@ -166,11 +166,13 @@
     ev_loop_destroy(main_loop);
 #endif
 
+#if !defined(__NetBSD__)
     if (*shmlogname != '\0') {
         fprintf(stderr, "Closing SHM log \"%s\"\n", shmlogname);
         fflush(stderr);
         shm_unlink(shmlogname);
     }
+#endif /* !defined(__NetBSD__) */
 }
 
 /*
@@ -180,9 +182,11 @@
  *
  */
 static void handle_signal(int sig, siginfo_t *info, void *data) {
+#if !defined(__NetBSD__)
     if (*shmlogname != '\0') {
         shm_unlink(shmlogname);
     }
+#endif /* !defined(__NetBSD__) */
     raise(sig);
 }