From 287aa9d1626891efa86203250c49343b95a7a159 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Wed, 15 Aug 2007 01:48:40 +0000 Subject: [PATCH] (ssize_t, pid_t) [_WIN32]: Move from misc.h to POSIX's location in unistd.h. --- include/misc.h | 3 --- src/lib/w32/unistd.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/misc.h b/include/misc.h index 111d57248..3ca3e00b4 100644 --- a/include/misc.h +++ b/include/misc.h @@ -41,14 +41,11 @@ #ifdef _WIN32 #ifndef __GNUC__ -typedef long ssize_t; - /* integral mismatch, due to misuse of sector short */ #pragma warning (disable : 4761 ) #define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3)) -typedef int pid_t; #define vsnprintf _vsnprintf #define snprintf _snprintf diff --git a/src/lib/w32/unistd.h b/src/lib/w32/unistd.h index 43c8a8d5c..eac9220c2 100644 --- a/src/lib/w32/unistd.h +++ b/src/lib/w32/unistd.h @@ -38,6 +38,9 @@ #include "getopt.h" #include +typedef long ssize_t; +typedef int pid_t; + /* * posixfile.c */ -- 2.43.0