--- ntop/work/linux-starting/ntop/util.c 2004-12-16 02:22:20.000000000 -0600
+++ ntop/work/linux/ntop/util.c 2005-01-07 11:00:49.000000000 -0600
@@ -2699,6 +2699,10 @@ void traceEvent(int eventTraceLevel, cha
       /* Skip over time - syslog() adds it automatically) */
       char *bufLog = &buf[strlen(bufTime)];
 
+#ifdef FORPRENPTL
+      accessMutex(&myGlobals.preNPTLlogMutex, "message");
+#endif
+
       /* SYSLOG and set */
       openlog("ntop", LOG_PID, myGlobals.runningPref.useSyslog);
 
@@ -2723,6 +2727,11 @@ void traceEvent(int eventTraceLevel, cha
       syslog(LOG_ERR, "%s", bufLog);
 #endif
       closelog();
+
+#ifdef FORPRENPTL
+      releaseMutex(&myGlobals.preNPTLlogMutex);
+#endif
+
     }
 #endif /* MAKE_WITH_SYSLOG */
 
--- ntop/work/linux-starting/ntop/globals-core.c 2004-12-13 12:07:01.000000000 -0600
+++ ntop/work/linux/ntop/globals-core.c 2005-01-07 10:17:48.000000000 -0600
@@ -347,6 +347,10 @@ void initNtopGlobals(int argc, char * ar
 /* create the logView stuff Mutex first... must be before the 1st traceEvent() call */
 #ifdef CFG_MULTITHREADED
   createMutex(&myGlobals.logViewMutex);     /* synchronize logView buffer */
+#ifdef FORPRENPTL
+  #warning Making version for Pre NPTL Thread Library...
+  createMutex(&myGlobals.preNPTLlogMutex);     /* synchronize logView buffer */
+#endif
 #endif
   myGlobals.logViewNext = 0;
   myGlobals.logView = (char**)calloc(sizeof(char*),
--- ntop/work/linux-starting/ntop/globals-structtypes.h 2004-12-20 09:39:52.000000000 -0600
+++ ntop/work/linux/ntop/globals-structtypes.h 2005-01-07 10:17:45.000000000 -0600
@@ -2088,6 +2088,9 @@ typedef struct ntopGlobals {
   PthreadMutex fcSessionsMutex;
   PthreadMutex purgePortsMutex;
   PthreadMutex securityItemsMutex;
+#ifdef FORPRENPTL
+  PthreadMutex preNPTLlogMutex;
+#endif
 
   pthread_t handleWebConnectionsThreadId;
 
--- ntop/work/linux-starting/ntop/configureextra/LINUXredhat8.0 2003-09-03 19:36:59.000000000 -0500
+++ ntop/work/linux/ntop/configureextra/LINUXredhat8.0 2005-01-07 10:17:55.000000000 -0600
@@ -1,4 +1,6 @@
 #!/bin/sh
 
 echo "        Setting RedHat 8.0 specific flag values"
+
+CPPFLAGS="${CPPFLAGS} -DFORPRENPTL"
 
