summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2004-01-30 21:41:20 +0000
committerAlexandra Ellwood <lxs@mit.edu>2004-01-30 21:41:20 +0000
commitad3eb7227efd1ae91e71481a9b2ada00bfea278e (patch)
treefce64370077dfc26eff01f1e412874ea4c343306
parentd0a877277c29b316399dfcac6a7c7bb4b398aadc (diff)
downloadkrb5-ad3eb7227efd1ae91e71481a9b2ada00bfea278e.tar.gz
krb5-ad3eb7227efd1ae91e71481a9b2ada00bfea278e.tar.xz
krb5-ad3eb7227efd1ae91e71481a9b2ada00bfea278e.zip
prof-int.h should include pthread.h when USE_PTHREADS is defined
ticket: 2180 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15985 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/profile/ChangeLog5
-rw-r--r--src/util/profile/prof_int.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index efc822b98..bab4b5368 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -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
diff --git a/src/util/profile/prof_int.h b/src/util/profile/prof_int.h
index 06fce8757..919141168 100644
--- a/src/util/profile/prof_int.h
+++ b/src/util/profile/prof_int.h
@@ -4,6 +4,7 @@
#include <time.h>
#include <stdio.h>
+
#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
#include <TargetConditionals.h>
#define USE_PTHREADS
@@ -11,6 +12,11 @@
#define SHARE_TREE_DATA
#endif
+#if defined(USE_PTHREADS)
+#include <sys/types.h>
+#include <pthread.h>
+#endif
+
#include "com_err.h"
#include "profile.h"