gettid build failure fix for 1.3.38

Message ID 1136735882.13425.27.camel@bobcat.mine.nu
State New
Headers

Commit Message

Ville Skyttä Jan. 8, 2006, 3:58 p.m. UTC
  The attached patch fixes the build of 1.3.38 for me on Fedora Core 4 and
5test; glibc 2.3.5/gcc 4.0.2 and glibc 2.3.90/gcc 4.1.0.  Without it,
the build fails saying "'gettid' has not been defined" on both systems.
  

Patch

--- thread.c~	2006-01-04 17:01:22.000000000 +0200
+++ thread.c	2006-01-08 17:48:45.000000000 +0200
@@ -9,6 +9,7 @@ 
 
 #include "thread.h"
 #include <errno.h>
+#include <linux/unistd.h>
 #include <malloc.h>
 #include <stdarg.h>
 #include <sys/resource.h>