presence of the bindprocessor() function, not for sys/processor.h,
which exists on some systems that don't have bindprocessor()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89352
13f79535-47bb-0310-9956-
ffa450edef68
#include <sys/stat.h>
#include <sys/un.h>
#include <setjmp.h>
+#ifdef HAVE_SYS_PROCESSOR_H
+#include <sys/processor.h> /* for bindprocessor() */
+#endif
/*
* Actual definitions of config globals
}
if (!pid) {
-#ifdef HAVE_SYS_PROCESSOR_H
- /* By default, AIX binds to a single processor. This bit unbinds
- children which will then bind to another CPU.
- */
-#include <sys/processor.h>
+#ifdef HAVE_BINDPROCESSOR
+ /* By default, AIX binds to a single processor. This bit unbinds
+ * children which will then bind to another CPU.
+ */
int status = bindprocessor(BINDPROCESS, (int)getpid(),
PROCESSOR_CLASS_ANY);
if (status != OK)
#include <sys/stat.h>
#include <sys/un.h>
#include <setjmp.h>
+#ifdef HAVE_SYS_PROCESSOR_H
+#include <sys/processor.h> /* for bindprocessor() */
+#endif
/*
* Actual definitions of config globals
}
if (!pid) {
-#ifdef HAVE_SYS_PROCESSOR_H
- /* By default, AIX binds to a single processor. This bit unbinds
- children which will then bind to another CPU.
- */
-#include <sys/processor.h>
+#ifdef HAVE_BINDPROCESSOR
+ /* By default, AIX binds to a single processor. This bit unbinds
+ * children which will then bind to another CPU.
+ */
int status = bindprocessor(BINDPROCESS, (int)getpid(),
PROCESSOR_CLASS_ANY);
if (status != OK)
#ifdef HAVE_TIME_H
#include <time.h>
#endif
+#ifdef HAVE_SYS_PROCESSOR_H
+#include <sys/processor.h> /* for bindprocessor() */
+#endif
#include <signal.h>
#include <sys/times.h>
}
if (!pid) {
-#ifdef HAVE_SYS_PROCESSOR_H
-/* by default AIX binds to a single processor
- * this bit unbinds children which will then bind to another cpu
- */
-#include <sys/processor.h>
+#ifdef HAVE_BINDPROCESSOR
+ /* by default AIX binds to a single processor
+ * this bit unbinds children which will then bind to another cpu
+ */
int status = bindprocessor(BINDPROCESS, (int)getpid(),
PROCESSOR_CLASS_ANY);
if (status != OK) {