[prev in list] [next in list] [prev in thread] [next in thread]
List: gambas-devel
Subject: [Gambas-devel] Cygwin patch
From: Bastian Germann <bastiangermann () fishpost ! de>
Date: 2016-09-12 17:55:55
Message-ID: CAK8TuTqprkWzDBAMtqeXuNrxyJyuEn+vXYADXH5JfDFOUsEuBg () mail ! gmail ! com
[Download RAW message or body]
Hi!
I saw someone included my patch in 3.9.0. Thanks for that. Here are
two more Cygwin patches.
Now I am able to build every package except the gb-v4l (which is
deprecated anyway) and gb-inotify package, which is dependent on Linux
kernel and required for the IDE unfortunately. I am currently working
on a cygport.
To address the inotify issue: Can I just patch the requirement
definitions and calls to that package out of the IDE or does it
implement a feature that is absolutely necessary? Then I would use
fswatch [0] or Qt's QFileSystemWatcher to implement an alternative
component. Actually in the Todo of gb-inotify there are two
alternative (outdated?) libs listed that the author wants to have a
look at. How does the FreeBSD port handle the file watching?
What are your thoughts on this?
Regards,
Bastian
[0] http://emcrisostomo.github.io/fswatch
[1] http://doc.qt.io/qt-5/qfilesystemwatcher.html
["gambas3-x11-pkgconfig.patch" (application/octet-stream)]
Index: gb.sdl/configure.ac
===================================================================
--- gb.sdl/configure.ac (Revision 7906)
+++ gb.sdl/configure.ac (Arbeitskopie)
@@ -33,7 +33,7 @@
GB_COMPONENT_SEARCH(
sdl, SDL, gb.sdl, [src],
- sdl "> 1.2.8" SDL_ttf glew xcursor,
+ sdl "> 1.2.8" SDL_ttf glew xcursor x11,
[GB_FIND(GL/glew.h SDL_ttf.h X11/Xcursor/Xcursor.h, /usr /usr/local `sdl-config \
--prefix`, include include/SDL)], [GB_FIND(libSDL_ttf.$SHLIBEXT libGLEW.$SHLIBEXT \
libXcursor.$SHLIBEXT, /usr /usr/local `sdl-config --prefix`, lib)], [$X_LIBS \
-lSDL_ttf -lGLEW -lXcursor],
["gambas3-xml-memrchr.patch" (application/octet-stream)]
Index: gb.xml/src/gb.xml.h
===================================================================
--- gb.xml/src/gb.xml.h (Revision 7906)
+++ gb.xml/src/gb.xml.h (Arbeitskopie)
@@ -192,7 +192,7 @@
void (*ThrowXMLParseException)(const char* nerror, const char *text, const \
size_t lenText, const char *posFailed);
-#if defined(OS_MACOSX) || defined(__APPLE__)
+#if defined(OS_MACOSX) || defined(__APPLE__) || defined(__CYGWIN__)
void* (*memrchr)(const char *s, int c, size_t n);
#endif
Index: gb.xml/src/html/htmlmain.h
===================================================================
--- gb.xml/src/html/htmlmain.h (Revision 7906)
+++ gb.xml/src/html/htmlmain.h (Arbeitskopie)
@@ -28,7 +28,7 @@
extern "C" XML_INTERFACE XML;
#endif
-#if defined(OS_MACOSX) || defined(__APPLE__)
+#if defined(OS_MACOSX) || defined(__APPLE__) || defined(__CYGWIN__)
#define memrchr(s, c, n) XML.memrchr(s, c, n)
#endif
Index: gb.xml/src/main.cpp
===================================================================
--- gb.xml/src/main.cpp (Revision 7906)
+++ gb.xml/src/main.cpp (Arbeitskopie)
@@ -104,7 +104,7 @@
(void *)ThrowXMLParseException,
- #if defined(OS_MACOSX) || defined(__APPLE__)
+ #if defined(OS_MACOSX) || defined(__APPLE__) || defined(__CYGWIN__)
(void*)memrchr,
#endif
Index: gb.xml/src/utils.cpp
===================================================================
--- gb.xml/src/utils.cpp (Revision 7906)
+++ gb.xml/src/utils.cpp (Arbeitskopie)
@@ -28,7 +28,7 @@
#include <stdio.h>
#include <memory.h>
-#ifdef OS_MACOSX
+#if defined(OS_MACOSX) || defined(__CYGWIN__)
void *memrchr(const char *s, int c, size_t n)
{
const char *start=s,*end=(s+n-1);
Index: gb.xml/src/utils.h
===================================================================
--- gb.xml/src/utils.h (Revision 7906)
+++ gb.xml/src/utils.h (Arbeitskopie)
@@ -26,7 +26,7 @@
#define CHAR_ERROR 0xFFFD // �
-#ifdef OS_MACOSX
+#if defined(OS_MACOSX) || defined(__CYGWIN__)
#include <string.h>
void *memrchr(const char *s, int c, size_t n);
#endif
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic