- Add kbuild-gcc7.patch: Fix build with GCC7 (boo#1039375): we also need the definition of strlcpy on Linux; only *BSD has this by default. OBS-URL: https://build.opensuse.org/request/show/495683 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/kbuild?expand=0&rev=32
15 lines
570 B
Diff
15 lines
570 B
Diff
Index: kbuild-0.1.9998svn2814/src/kash/mystring.h
|
|
===================================================================
|
|
--- kbuild-0.1.9998svn2814.orig/src/kash/mystring.h
|
|
+++ kbuild-0.1.9998svn2814/src/kash/mystring.h
|
|
@@ -44,9 +44,7 @@ void scopyn(const char *, char *, ssize_
|
|
int prefix(const char *, const char *);
|
|
int number(struct shinstance *, const char *);
|
|
int is_number(const char *);
|
|
-#ifdef _MSC_VER
|
|
size_t strlcpy(char *dst, const char *src, size_t siz);
|
|
-#endif
|
|
|
|
#define equal(s1, s2) (strcmp(s1, s2) == 0)
|
|
#define scopy(s1, s2) ((void)strcpy(s2, s1))
|