search for: __cygwin__

Displaying 20 results from an estimated 39 matches for "__cygwin__".

2004 Jan 13
1
tftpd-hpa suggestions
Hello, Peter and others! there are some issues regarding the tftp-hpa server: 1. Running as Windows service seems to require that the application does not detach (otherwise "net start" says smth. like "could not start, the service didn't report any errors"). The attached patch adds the option "-n", which can be used to have tftpd run in foreground.
2014 Feb 13
3
Libguestfs (1.22.6) driver/changes for mingw/win32
Hi, I attached the changes I made to a vanilla libguestfs-1.22.6 in order to make it work in mingw/win32. Added is also the patch required to make QEMU compatible (add a command to QMP that lists the supported devices (the regilat way you do it print it to stderr, which is difficult to redirect in win32)). This is done on behalf of Intel Corp. Thanks, Or (oberon in irc)
2017 Feb 09
1
[PATCH] Fix compile with cygwin
...os_is_windows=yes ;; diff --git a/include/share/compat.h b/include/share/compat.h index f74a5c1..2ad40fb 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -98,7 +98,7 @@ #define FLAC__STRNCASECMP strncasecmp #endif -#if defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ || defined __EMX__ +#if defined _MSC_VER || defined __MINGW32__ || defined __EMX__ #include <io.h> /* for _setmode(), chmod() */ #include <fcntl.h> /* for _O_BINARY */ #else diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 2e1fdd5..d3b6e03 100644 --- a/s...
2006 Apr 29
3
[LLVMdev] Building LLVM under Mingw. Part I: tools-only
...") 2.2 CopyFile Patch lib/System/Win32/Path.inc in such way, that declaration of CopyFile will look like: void CopyFile(const sys::Path &Dest, const sys::Path &Src) { 2.3 X86 stuff Patch lib/Target/X86/X86SubTarget.cpp & X86JITInfo.cpp in such way: X86SubTarget.cpp: #if defined(__CYGWIN__) || defined(__MINGW32__) TargetType = isCygwin; #elif defined(__APPLE__) TargetType = isDarwin; #elif defined(_WIN32) TargetType = isWindows; #endif X86JITInfo.cpp: #if defined(__CYGWIN__) || defined(__APPLE__) || defined(__MINGW32__) ".globl _X86CompilationCallback\n"...
2002 Feb 20
2
[PATCH] rsync on cygwin - textmode config files
...through a hack), but frankly, it is a MAJOR pain in the ass to get working especially when trying to run rsync as a NT service. Besides, CYGWIN permissions won't give you any added security -- the security should be handled with NTFS ACL's. So I added a #ifndef __CYGWIN__'s Perhaps this would make sense for mainline rsync as well? (4) Lastly, the original reason I began compiling my own version was that I had a binary version that did not force binary open (I got corrupted .doc files etc in the transmission.) I found out that the mainline...
2013 Apr 02
2
flac 1.3.0pre3 pre-release
...anges in git for flactimer. Applied, thanks. > I noticed compat.h patch didn't make it into git. I know it may not be > perfect patch but unistd.h is in two different #ifdef checks. First one > is fine when it's excluded on _WIN32 but second check gives is for > everyone if __CYGWIN__ or __EMX__ isn't defined. That has to be a mistake. Someone with access to those systems needs to test this. If it doesn't get tested it won't make it into the release. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-...
2006 Apr 30
0
[LLVMdev] Building LLVM under Mingw. Part I: tools-only
BTW: I've also had to make this change when building tools. (I'm building right now and noticed that it doesn't come up anymore, maybe someone checked it in in the last week or so) On Sat, 29 Apr 2006, Anton Korobeynikov wrote: > Hello, Jeff. > > You wrote Saturday, April 29, 2006, 10:45:02 PM: > > JC> Yes, I know mingw doesn't support dbghelp. I can still rant
2006 Apr 29
2
[LLVMdev] Building LLVM under Mingw. Part I: tools-only
Hello, Jeff. You wrote Saturday, April 29, 2006, 10:45:02 PM: JC> Yes, I know mingw doesn't support dbghelp. I can still rant about it :) ;) Well. Maybe this library will be included in some next versions of mingw's win32api package. Anyway, we can make such library just "on-fly" from the corresponding .dll. JC> This is what's already there. What changed? Maybe
2013 Apr 07
0
flac 1.3.0pre3 pre-release
On 2.4.2013 12:57, Erik de Castro Lopo wrote: > I noticed compat.h patch didn't make it into git. I know it may not be > perfect patch but unistd.h is in two different #ifdef checks. First one > is fine when it's excluded on _WIN32 but second check gives is for > everyone if __CYGWIN__ or __EMX__ isn't defined. That has to be a mistake. > Someone with access to those systems needs to test this. If it doesn't > get tested it won't make it into the release. > > Erik Here's one more try to solve the compilation problem when non-existing unistd.h is trie...
2000 Jun 13
1
compiling under cygwin
To get CVS ver to compile under cygwin 1.1.2 it would be convenient to change file: /usr/local/cvsroot/vorbis/include/vorbis/os_types.h 21c21 < #ifdef _WIN32 --- > #if defined (_WIN32) && !defined(__CYGWIN__) thx -dan ---------- daniel.probst@vwl.uni-mannheim.de Dr. Daniel Probst Economic Theory Mannheim University Germany --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/
2019 Jan 25
0
[klibc:update-dash] [CD] support drive letters on Cygwin
...t; --- usr/dash/cd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/usr/dash/cd.c b/usr/dash/cd.c index 2d9d4b52..a4e024d8 100644 --- a/usr/dash/cd.c +++ b/usr/dash/cd.c @@ -38,6 +38,9 @@ #include <string.h> #include <unistd.h> #include <limits.h> +#ifdef __CYGWIN__ +#include <sys/cygwin.h> +#endif /* * The cd and pwd commands. @@ -194,6 +197,17 @@ updatepwd(const char *dir) char *cdcomppath; const char *lim; +#ifdef __CYGWIN__ + /* On cygwin, thanks to drive letters, some absolute paths do + not begin with slash; but cygwin includes a func...
2020 Mar 28
0
[klibc:update-dash] dash: [CD] support drive letters on Cygwin
...t; --- usr/dash/cd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/usr/dash/cd.c b/usr/dash/cd.c index 2d9d4b52..a4e024d8 100644 --- a/usr/dash/cd.c +++ b/usr/dash/cd.c @@ -38,6 +38,9 @@ #include <string.h> #include <unistd.h> #include <limits.h> +#ifdef __CYGWIN__ +#include <sys/cygwin.h> +#endif /* * The cd and pwd commands. @@ -194,6 +197,17 @@ updatepwd(const char *dir) char *cdcomppath; const char *lim; +#ifdef __CYGWIN__ + /* On cygwin, thanks to drive letters, some absolute paths do + not begin with slash; but cygwin includes a func...
2004 Sep 10
3
Cygwin patch
...Talk about exhaustive. If anyone is interested in my Cygwin binaries (no Ogg support), I can provide an encap package file. Let me know. --- orig/flac-1.0.3/src/flac/file.c 2002-02-17 17:22:49 -0500 +++ flac-1.0.3/src/flac/file.c 2002-08-13 08:25:38 -0400 @@ -27,6 +27,7 @@ #endif #ifdef __CYGWIN__ #include <io.h> /* for _setmode(), O_BINARY */ +#include <fcntl.h> #endif #include <sys/stat.h> /* for stat(), maybe chmod() */ #include <string.h> /* for strrchr() */ diff -ubr orig/flac-1.0.3/src/libFLAC/file_decoder.c flac-1.0.3/src/libFLAC/file_decoder.c --- orig/f...
2013 Apr 01
2
flac 1.3.0pre3 pre-release
Janne Hyv?rinen wrote: > Zip with random patches: > > flac_mac: fixes some missing parameters from safe string handling > changes in flac_mac's main.c > flac_mac_project: adds flac's include dir for the project so new > functions can be found > progress_display: flac testing progress display used old functions that > didn't get utf-8 decoding >
2005 Mar 08
0
[LLVMdev] GCC assembler rejects native code generated by LLVM
...ieving revision 1.132 diff -r1.132 X86AsmPrinter.cpp 87c87,88 < forCygwin = TT.find("cygwin") != std::string::npos; --- > forCygwin = TT.find("cygwin") != std::string::npos || > TT.find("mingw") != std::string::npos; 89c90 < #ifdef __CYGWIN__ --- > #if defined(__CYGWIN__) || defined(__MINGW32__) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/...
2001 Oct 20
4
rsync on cygwin: Connection reset by peer
...ing rsync as a service, this patch doesn't fix or cause the error (the error exists before this patch) Index: socket.c =================================================================== RCS file: /cvsroot/rsync/socket.c,v retrieving revision 1.36 diff -r1.36 socket.c 443a444,452 > #ifndef __CYGWIN__ > /* jrepp: This causes problems when using rsync > under srvany.exe as a service, srvany loses > track of rsync.exe because it kills it's original > process. This doesn't hurt seem to hurt when running > it straight from the cmdline either. >...
2005 Mar 08
0
[LLVMdev] GCC assembler rejects native code generated by LLVM
Ok, I got home so I have more details. Here's the sample C program: ----------------- C program --------------- #include <stdio.h> int main() { printf("hello world\n"); return 0; } ------------- end C program ------------- This is compiled using llvm online demo into the following llvm code (target removed): ----------------- LLVM code -------------- deplibs
2005 Mar 08
3
[LLVMdev] GCC assembler rejects native code generated by LLVM
Vyacheslav, This is the same problem that I had with Cygwin .. nearly identical. The issue was documented in PR492 if you want some background. I'm currently trying to dig up what I did to fix this in December for Cygwin and see if I can apply the same change for mingw. Reid. On Mon, 2005-03-07 at 16:39, Vyacheslav Akhmechet wrote: > Ok, I got home so I have more details. Here's the
2018 Aug 18
1
[PATCH] move CreateFile() function from libFLAC
...re/grabbag/file.c This function is not used by libFLAC anyway. After this, it should be possible to compile libFLAC as UWP. In the old code there were 3 different #if conditionals around the code that uses CreateFile_utf8(): 1) #ifdef _WIN32 ... #endif 2) #if defined _WIN32 && !defined __CYGWIN__ ... #endif 3) #if defined _MSC_VER || defined __MINGW32__ ... #endif It seems for me that the 2nd version makes more sense,so I replaced them all with it. Also this patch removes WINAPI_FAMILY_PARTITION ... CreateFile2 etc stuff from the code. The file src/share/grabbag/file.c contains non-UWP fu...
2010 Mar 04
1
Making tftpd (hpa) firewall frienldy
...e below (which basically makes tftp reply back with same port is listening on ) tftpd --port-range 69:69 -4 -s /tftpboot/ --- tftp-hpa-0.49/tftpd/tftpd.c 2008-10-21 01:08:31.000000000 +0300 +++ tftp-hpa-0.49-tftpd-reuseport.c 2010-03-03 15:19:26.000000000 +0200 @@ -524,6 +524,11 @@ #ifndef __CYGWIN__ set_socket_nonblock(fd4, 1); #endif + { int x = 1; setsockopt (fd4, SOL_SOCKET, SO_REUSEADDR, &x, sizeof (x)); } +#ifdef SO_REUSEPORT + { int x = 1; setsockopt (fd4, SOL_SOCKET, SO_REUSEPORT , &x, sizeof (x)); } +#endif + memset(&bindaddr4, 0, sizeof binda...