all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 9801a81f69d0951b1dd5a1687eec6d0eb83d4dd6 822 bytes (raw)
name: gnu/packages/patches/ncurses-mingw.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
--- ncurses-6.0.orig/include/curses.h.in	2014-08-09 22:39:44.000000000 +0200
+++ ncurses-6.0/include/curses.h.in	2016-04-09 20:47:14.266679000 +0200
@@ -1420,3 +1420,15 @@
 #define KEY_BREAK	0401		/* Break key (unreliable) */
 #define KEY_SRESET	0530		/* Soft (partial) reset (unreliable) */
 #define KEY_RESET	0531		/* Reset or hard reset (unreliable) */
+
+#ifdef __MINGW32__
+/* Windows API headers, included e.g. by serial.h, define MOUSE_MOVED,
+   and so does PDCurses's curses.h, but for an entirely different
+   purpose.  Since we don't use the Windows semantics of MOUSE_MOVED
+   anywhere, avoid compiler warnings by undefining MOUSE_MOVED before
+   including curses.h.  */
+#undef MOUSE_MOVED
+/* Likewise, KEY_EVENT is defined by ncurses.h, but also by Windows
+   API headers.  */
+#undef KEY_EVENT
+#endif

debug log:

solving 9801a81 ...
found 9801a81 in https://yhetil.org/guix/87zissp3ia.fsf@drakenvlieg.flower/ ||
	https://yhetil.org/guix/87d1pssnwl.fsf@drakenvlieg.flower/

applying [1/1] https://yhetil.org/guix/87zissp3ia.fsf@drakenvlieg.flower/
diff --git a/gnu/packages/patches/ncurses-mingw.patch b/gnu/packages/patches/ncurses-mingw.patch
new file mode 100644
index 0000000..9801a81

Checking patch gnu/packages/patches/ncurses-mingw.patch...
Applied patch gnu/packages/patches/ncurses-mingw.patch cleanly.

skipping https://yhetil.org/guix/87d1pssnwl.fsf@drakenvlieg.flower/ for 9801a81
index at:
100644 9801a81f69d0951b1dd5a1687eec6d0eb83d4dd6	gnu/packages/patches/ncurses-mingw.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.