prof-int.h should include pthread.h when USE_PTHREADS is defined
authorAlexandra Ellwood <lxs@mit.edu>
Fri, 30 Jan 2004 21:41:20 +0000 (21:41 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Fri, 30 Jan 2004 21:41:20 +0000 (21:41 +0000)
ticket: 2180

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15985 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/prof_int.h

index efc822b989e14e6e6cf935d8f739c5441bc0c0b7..bab4b53682f011835f328561864cfe6bad7aafe1 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-30  Alexandra Ellwood  <lxs@mit.edu>
+
+    * prof-int.h: prof-int.h should include pthread.h when USE_PTHREADS 
+    is defined.
+
 2003-12-19  Ken Raeburn  <raeburn@mit.edu>
 
        * prof_get.c (profile_iterator_create): NAMES argument points to
index 06fce875775ff8efe313222639b321ca920eafc6..919141168f89ae974e2625ef9e4b7c4078ad75c1 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <time.h>
 #include <stdio.h>
+
 #if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
 #include <TargetConditionals.h>
 #define USE_PTHREADS
 #define SHARE_TREE_DATA
 #endif
 
+#if defined(USE_PTHREADS)
+#include <sys/types.h>
+#include <pthread.h>
+#endif
+
 #include "com_err.h"
 #include "profile.h"