File libnotify-0.7.4-windows.patch of Package mingw64-libnotify
--- libnotify-0.7.4/libnotify/Makefile.am 2011-08-16 13:52:04.000000000 +0200
+++ libnotify-0.7.4/libnotify/Makefile.am 2011-10-09 16:03:50.000000000 +0200
@@ -43,7 +43,7 @@
libnotify_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -export-symbols-regex "^notify_.*"
+ -export-symbols-regex "^notify_.*" -no-undefined
notify-marshal.h: notify-marshal.list
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=$(MARSHAL_PREFIX) notify-marshal.list \
--- libnotify-0.7.4/libnotify/Makefile.in 2011-08-28 00:47:26.000000000 +0200
+++ libnotify-0.7.4/libnotify/Makefile.in 2011-10-09 16:04:35.000000000 +0200
@@ -312,7 +312,7 @@
libnotify_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -export-symbols-regex "^notify_.*"
+ -export-symbols-regex "^notify_.*" -no-undefined
@HAVE_INTROSPECTION_TRUE@INTROSPECTION_GIRS = Notify-0.7.gir
@HAVE_INTROSPECTION_TRUE@INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_srcdir) --add-include-path=$(top_builddir) --warn-all -I$(top_srcdir)
--- libnotify-0.7.4/tests/test-image.c 2011-08-16 13:52:04.000000000 +0200
+++ libnotify-0.7.4/tests/test-image.c 2011-10-09 16:03:50.000000000 +0200
@@ -27,7 +27,9 @@
#include <assert.h>
#include <string.h>
#include <errno.h>
+#ifndef _WIN32
#include <sys/mman.h>
+#endif
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>