about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-28 19:05:26 +0000
committerJames Booth <boothj5@gmail.com>2016-02-28 19:05:26 +0000
commitaccde2a61c2d9dd8ee1d7ad58ccf4b1c2ec7fa58 (patch)
tree47cc791fd4c482d288964a553d06e30b355c81af
parentfbd913ec626d8436ea4efdde4ffc8090a3b52cfc (diff)
downloadprofani-tty-accde2a61c2d9dd8ee1d7ad58ccf4b1c2ec7fa58.tar.gz
Fixed cygwin compile
-rw-r--r--Makefile.am2
-rw-r--r--src/ui/mucwin.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index fc7882d6..365fd21c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -189,7 +189,7 @@ endif
 
 if BUILD_C_API
 lib_LTLIBRARIES = libprofanity.la
-libprofanity_la_LDFLAGS=-avoid-version -shared
+libprofanity_la_LDFLAGS=-avoid-version -shared -no-undefined
 libprofanity_la_SOURCES = src/plugins/profapi.c
 
 library_includedir=$(includedir)
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index e3826eb1..4d323ef1 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -32,6 +32,8 @@
  *
  */
 
+#define _GNU_SOURCE 1
+
 #include <string.h>
 #include <assert.h>
 #include <stdlib.h>