File: use-libbsd.diff

package info (click to toggle)
xlax 2.4-3
  • links: PTS
  • area: main
  • in suites: sid
  • size: 1,204 kB
  • sloc: ansic: 3,787; perl: 127; makefile: 72
file content (23 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# DP: strlcpy still isn’t in glibc ☹

--- a/Imakefile
+++ b/Imakefile
@@ -4,7 +4,7 @@
 #        CDEBUGFLAGS = -g
 #            DEFINES = -DDEBUG
             DEPLIBS = XawClientDepLibs
-    LOCAL_LIBRARIES = XawClientLibs
+    LOCAL_LIBRARIES = XawClientLibs -lbsd
                SRCS = xlax.c
                OBJS = xlax.o
 
--- a/xlax.c
+++ b/xlax.c
@@ -32,6 +32,7 @@
 
 #include "xlax.h"
 #include "vroot.h"
+#include <bsd/string.h>
 
 XtAppContext
   Appcon;