freebsd-ports/x11-wm/wmii-devel/files/patch-include_util.h
Rodrigo Osorio 16b2a474d1 Fix whith -fno-common in FreeBSD 13
Lastest version of llvm introduced in
FreeBSD 13 has the flag -fno-common
enabled by default. Fix the issue.
2020-11-02 14:39:51 +00:00

22 lines
451 B
C

--- include/util.h.orig 2010-06-10 07:24:03 UTC
+++ include/util.h
@@ -4,6 +4,10 @@
#define nil ((void*)0)
#define nelem(ary) (sizeof(ary) / sizeof(*ary))
+#ifndef EXTERN
+# define EXTERN extern
+#endif
+
/* Types */
#undef uchar
#undef ushort
@@ -55,7 +59,7 @@ char* vsxprint(const char*, va_list);
#define die(...) \
_die(__FILE__, __LINE__, __VA_ARGS__)
-char *argv0;
+EXTERN char *argv0;
#undef ARGBEGIN
#undef ARGEND
#undef ARGF