]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
All MULTITHREAD platforms need the tid_t and gettid() functions before
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 26 Sep 2001 14:40:13 +0000 (14:40 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 26 Sep 2001 14:40:13 +0000 (14:40 +0000)
  they can compile mod_unique_id.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91149 13f79535-47bb-0310-9956-ffa450edef68

src/os/win32/os.h

index 0397f94d3c11819cb8de215df364da331a72d253..f3742fdceab3349c395bfed09c05af0dbd3c4c89 100755 (executable)
 typedef int uid_t;
 typedef int gid_t;
 typedef int pid_t;
+typedef int tid_t;
 #ifdef _MSC_VER
 /* modified to match declaration in sys/stat.h */
 typedef unsigned short mode_t;
@@ -221,6 +222,8 @@ API_EXPORT(const char *) ap_os_dso_error(void);
 #define HAVE_ISINF
 #define isinf(n) (!_finite(n))
 
+#define gettid() ((tid_t)GetCurrentThreadId())
+
 #endif /* WIN32 */
 
 #endif   /* ! APACHE_OS_H */