Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37908462
en ru br
ALT Linux repos
S:2.72-alt1.1
5.0: 2.68-alt2
4.1: 2.65-alt0.1.1
4.0: 2.65-alt0.1.1

Group :: Networking/WWW
RPM: siege

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: siege-limits.patch
Download


diff --git a/siege/src/setup.h b/siege/src/setup.h
index 553d3b8..c6af1c7 100644
--- siege/src/setup.h
+++ siege/src/setup.h
@@ -33,6 +33,7 @@
 #include <pthread.h>
 #include <ctype.h>
 #include <stdarg.h>
+#include <limits.h>
 
 #if HAVE_SYS_WAIT_H
 # include <sys/wait.h>
@@ -123,17 +124,6 @@ int strlen();
 
 #define MAXREPS       10301062
 
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
-
-#ifndef INT_MIN
-# define INT_MIN (~0 << (sizeof (int) * CHAR_BIT - 1))
-#endif
-#ifndef INT_MAX
-# define INT_MAX (~0 - INT_MIN)
-#endif
-
 void display_help();
 void display_version(BOOLEAN b);
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin