projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0688ef0
)
If we don't have pthreads, don't call thread pool functions
author
aland
<aland>
Mon, 5 Jul 2004 15:16:48 +0000
(15:16 +0000)
committer
aland
<aland>
Mon, 5 Jul 2004 15:16:48 +0000
(15:16 +0000)
src/main/radiusd.c
patch
|
blob
|
history
diff --git
a/src/main/radiusd.c
b/src/main/radiusd.c
index
ca6192a
..
a45769b
100644
(file)
--- a/
src/main/radiusd.c
+++ b/
src/main/radiusd.c
@@
-1301,6
+1301,7
@@
int main(int argc, char *argv[])
* and let the thread pool take care of
* doing something with it.
*/
+#ifdef HAVE_PTHREAD_H
if (spawn_flag) {
if (!thread_pool_addrequest(request, fun)) {
/*
@@
-1310,9
+1311,9
@@
int main(int argc, char *argv[])
request_reject(request);
request->finished = TRUE;
}
- } else {
+ } else
+#endif
rad_respond(request, fun);
- }
} /* loop over listening sockets*/
#ifdef WITH_SNMP