[Box Backup-dev] COMMIT r667 - box/chris/general/lib/win32

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sat, 22 Jul 2006 23:20:07 +0000 (GMT)


Author: chris
Date: 2006-07-22 23:20:01 +0000 (Sat, 22 Jul 2006)
New Revision: 667

Modified:
   box/chris/general/lib/win32/emu.h
Log:
* emu.h
- Removed dependency on lib/common/Box.h (since lib/common now depends on
  lib/win32)


Modified: box/chris/general/lib/win32/emu.h
===================================================================
--- box/chris/general/lib/win32/emu.h	2006-07-22 23:18:49 UTC (rev 666)
+++ box/chris/general/lib/win32/emu.h	2006-07-22 23:20:01 UTC (rev 667)
@@ -5,6 +5,12 @@
 
 #define _INO_T_DEFINED
 
+#define WIN32_LEAN_AND_MEAN
+
+#ifndef __MSVCRT_VERSION__
+#define __MSVCRT_VERSION__ 0x0601
+#endif
+
 #include <winsock2.h>
 #include <fcntl.h>
 #include <sys/stat.h>
@@ -36,22 +42,18 @@
 #define fileno(struct_file)   _fileno(struct_file)
 #endif
 
+typedef uint32_t u_int32_t;
+
 int SetTimerHandler(void (__cdecl *func ) (int));
 int setitimer(int type, struct itimerval *timeout, void *arg);
 void InitTimer(void);
 void FiniTimer(void);
 
-inline int geteuid(void)
-{
-	//lets pretend to be root!
-	return 0;
-}
-
 struct passwd {
 	char *pw_name;
 	char *pw_passwd;
-	uid_t pw_uid;
-	gid_t pw_gid;
+	int pw_uid;
+	int pw_gid;
 	time_t pw_change;
 	char *pw_class;
 	char *pw_gecos;