Citeren Frederic BOHE <[email protected]>:
Modified: branches/windows_port/include/wincompat.h
==============================================================================
--- branches/windows_port/include/wincompat.h Wed Jan 26 15:05:16
2011 (r2852)
+++ branches/windows_port/include/wincompat.h Wed Jan 26 15:16:09
2011 (r2853)
@@ -28,6 +28,7 @@
#include "common.h"
#define sleep(n) Sleep(1000 * n)
+#define strtok_r(a,b,c) strtok(a,b)
/* Network compatibility */
You probably want to use
+#define strtok_r(a,b,c) strtok_s(a,b,c)
here. I'm not sure that never tokenize multiple strings at the same
time (in which case using strtok() would severely break).
Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev