OSDN Git Service

Fix for mingw-w64 build
authorsdottaka <none@none>
Sun, 6 Jan 2013 02:30:43 +0000 (11:30 +0900)
committersdottaka <none@none>
Sun, 6 Jan 2013 02:30:43 +0000 (11:30 +0900)
Src/PathContext.h
Src/diffutils/src/system.h

index 3482c4f..9be348e 100644 (file)
@@ -21,7 +21,7 @@ class PathContext;
  */
 class PathInfo
 {
-       friend PathContext;
+       friend class PathContext;
 public:
        PathInfo() {}
        PathInfo(const PathInfo &pi);
index bcd9440..f60f880 100644 (file)
@@ -212,7 +212,9 @@ int pclose(FILE *);
 #endif
 
 #ifdef __NT__
+#ifndef _PID_T_
 typedef int pid_t;
+#endif
 #define popen  _popen
 #define pclose _pclose
 #endif