Avoid Win32 functions
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Thu, 28 Aug 2014 08:48:22 +0000 (03:48 -0500)
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Thu, 28 Aug 2014 08:48:22 +0000 (03:48 -0500)
0.99.19-cygwin-no-win32.patch [new file with mode: 0644]
libcaca.cygport

diff --git a/0.99.19-cygwin-no-win32.patch b/0.99.19-cygwin-no-win32.patch
new file mode 100644 (file)
index 0000000..c545057
--- /dev/null
@@ -0,0 +1,22 @@
+--- origsrc/libcaca-0.99.beta19/caca/time.c    2012-12-28 11:34:08.000000000 -0600
++++ src/libcaca-0.99.beta19/caca/time.c        2014-08-28 03:11:49.790176200 -0500
+@@ -35,7 +35,7 @@
+ void _caca_sleep(int usec)
+ {
+-#if defined(HAVE_SLEEP)
++#if defined(USE_WIN32)
+     Sleep((usec + 500) / 1000);
+ #elif defined(HAVE_USLEEP)
+     usleep(usec);
+--- origsrc/libcaca-0.99.beta19/src/cacaview.c 2012-12-28 11:46:24.000000000 -0600
++++ src/libcaca-0.99.beta19/src/cacaview.c     2014-08-28 03:12:10.433797600 -0500
+@@ -18,7 +18,7 @@
+ #   include <stdlib.h>
+ #endif
+-#if defined(HAVE_SLEEP)
++#if defined(USE_WIN32)
+ #   include <windows.h>
+ #endif
index 45d3d332f2e839bd8a4634e50450269e5d72daba..5478646c85ab7c59355e8e4004f805469900a32e 100644 (file)
@@ -19,6 +19,7 @@ PATCH_URI="
        0.99.18-java.patch
        0.99.18-ncurses6.patch
        0.99.18-python-errno.patch
+       0.99.19-cygwin-no-win32.patch
 "
 
 PKG_NAMES="${NAME}-bin ${NAME}0 ${NAME}++0 ${NAME}-devel ${NAME}++-devel ${NAME}-doc
This page took 0.05217 seconds and 5 git commands to generate.