Subject: | Compile Failure on MSWin32 |
Attached is a patch to allow Data::UUID to compile under noaml MSWin32 (no Ming or Cygwin). I'm not sure it Does The Right Thing, and I don't know C, but it does work for me.
Should we also change the LIB => -lsocket.h like under MSWin32?
--- UUID.h.orig Wed Aug 27 15:38:36 2003
+++ UUID.h Tue Aug 09 14:59:56 2005
@@ -1,10 +1,14 @@
#if !defined __UUID_H__
# define __UUID_H__
+#if defined __MSWin32__
+#define __CYGWIN__
+#else
+#include <unistd.h>
+#endif
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <time.h>
#include "md5.h"