gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r10025 - Extractor/src/main


From: gnunet
Subject: [GNUnet-SVN] r10025 - Extractor/src/main
Date: Sat, 16 Jan 2010 23:10:01 +0100

Author: durner
Date: 2010-01-16 23:10:01 +0100 (Sat, 16 Jan 2010)
New Revision: 10025

Modified:
   Extractor/src/main/extractor.c
Log:
windows

Modified: Extractor/src/main/extractor.c
===================================================================
--- Extractor/src/main/extractor.c      2010-01-16 21:33:27 UTC (rev 10024)
+++ Extractor/src/main/extractor.c      2010-01-16 22:10:01 UTC (rev 10025)
@@ -1323,7 +1323,7 @@
 
   itoa(p1[0], arg1, 10);
   itoa(p2[1], arg2, 10);
-  pid = _spawnl(_P_NOWAIT, "C:\\WINDOWS\\SYSTEM32\\rundll32.exe", 
"C:\\WINDOWS\\SYSTEM32\\rundll32.exe",
+  pid = _spawnl(_P_NOWAIT, "rundll32.exe", "rundll32.exe",
         "libextractor-3.dll,address@hidden", arg1, arg2, NULL);
 #endif
   if (pid == -1)
@@ -2052,6 +2052,9 @@
   int eno;
   off_t offset;
   long pg;
+#ifdef WINDOWS
+  SYSTEM_INFO sys;
+#endif
 
   fd = -1;
   buffer = NULL;
@@ -2089,7 +2092,12 @@
        (fstatbuf.st_size > fsize) &&
        (fstatbuf.st_size > MAX_READ) )
     {
-      pg = sysconf (_SC_PAGE_SIZE);      
+#ifndef WINDOWS
+      pg = sysconf (_SC_PAGE_SIZE);
+#else
+      GetSystemInfo(&sys);
+      pg = sys.dwPageSize;
+#endif
       if ( (pg > 0) &&
           (pg < MAX_READ) )
        {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]