Explorar el Código

* CYGWIN fixes

svn: 813
Bryan Drewery hace 22 años
padre
commit
040275777f
Se han modificado 3 ficheros con 8 adiciones y 3 borrados
  1. 0 1
      src/botnet.c
  2. 2 0
      src/debug.c
  3. 6 2
      src/shell.c

+ 0 - 1
src/botnet.c

@@ -1088,7 +1088,6 @@ static void failed_tandem_relay(int idx)
 #ifdef USE_IPV6
       open_telnet_raw(dcc[idx].sock, dcc[idx].host,
 #else
-  if (dcc[idx].sock < 0 ||
       open_telnet_raw(dcc[idx].sock, dcc[idx].addr ?
 				     iptostr(htonl(dcc[idx].addr)) :
 				     dcc[idx].host, 

+ 2 - 0
src/debug.c

@@ -39,6 +39,7 @@ int     cx_ptr = 0;
 
 void setlimits()
 {
+#ifndef CYGWIN_HACKS
 #ifndef DEBUG_MEM
   struct rlimit plim, fdlim, corelim;
 /*  struct rsslim, stacklim;
@@ -65,6 +66,7 @@ void setlimits()
   cdlim.rlim_max = RLIM_INFINITY;
   setrlimit(RLIMIT_CORE, &cdlim);
 #endif /* !DEBUG_MEM */
+#endif /* !CYGWIN_HACKS */
 }
 
 void init_debug()

+ 6 - 2
src/shell.c

@@ -31,7 +31,9 @@
 #include <pwd.h>
 #include <signal.h>
 #ifdef S_ANTITRACE
-#include <sys/ptrace.h>
+# ifndef CYGWIN_HACKS
+#  include <sys/ptrace.h>
+# endif /* !CYGWIN_HACKS */
 #include <sys/wait.h>
 #endif /* S_ANTITRACE */
 #include <sys/utsname.h>
@@ -40,7 +42,9 @@
 #include <net/if.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
-#include <libgen.h>
+#ifndef CYGWIN_HACKS
+#  include <libgen.h>
+#endif /* !CYGWIN_HACKS */
 #include <ctype.h>
 #include <fcntl.h>
 #include <sys/stat.h>