]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - tools/purge/signal.hh
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / tools / purge / signal.hh
index 131ea21e5a6b2c0ad140bf1cd343f7bdc814534d..1d0f46eab18405e0333bad33e4dbf04b9790f438 100644 (file)
@@ -1,5 +1,5 @@
 //
-// $Id: signal.hh,v 1.4 2000/09/21 10:59:27 cached Exp $
+// $Id$
 //
 // Author:   Jens-S. V?ckler <voeckler@rvs.uni-hannover.de>
 // File:     signal.hh
 // Initial revision
 //
 //
+
 #ifndef _SIGNAL_HH
 #define _SIGNAL_HH
 
+#include "squid.h"
+
+#if HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
+#if !defined(__cplusplus)
 #if defined(__GNUC__) || defined(__GNUG__)
 #pragma interface
 #else
-#ifndef HAS_BOOL
-#define HAS_BOOL
+#ifndef HAVE_BOOL
+#define HAVE_BOOL
 typedef int bool;
 #define false 0
 #define true  1
 #endif
 #endif
+#endif /* __cplusplus */
 
 #if 1 // so far, all systems I know use void
 # define SIGRETTYPE void
@@ -77,14 +86,6 @@ extern "C" {
   typedef SIGRETTYPE SigFunc( SIGPARAM );
 }
 
-#ifndef HAS_PSIGNAL
-void
-psignal( int sig, const char* msg );
-  // purpose: print message, colon, space, signal name and LF.
-  // paramtr: sig (IN): signal number
-  //          msg (IN): message to prepend
-#endif // ! HAS_PSIGNAL
-
 SigFunc*
 Signal( int signo, SigFunc* newhandler, bool doInterrupt );
   // purpose: install reliable signals