Bug #1413

slight compilation problem in src/etag.c

Added by Anonymous about 7 years ago. Updated over 6 years ago.

Status:FixedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:core
Target version:1.5.0
Missing in 1.5.x:

Description

The below patch allows compiling in systems (*) without <stdint.h> since src/etag.c assumed not only that but later it assumed uint32_t.

(*) Tru64 is one.

--- src/etag.c.dist 2007-10-20 06:30:39.000000000 0300
++ src/etag.c 2007-10-20 06:32:10.000000000 0300
@ -1,5 +1,5 @
#include <string.h>
-#include <stdint.h>
#include "base.h"

#include "buffer.h" 
#include "etag.h"

-- jhi at-at iki.fi

0010-Fix-including-of-stdint.h.patch Magnifier (654 Bytes) stbuehler, 2008-02-18 14:27

History

#1 Updated by stbuehler over 6 years ago


--- a/src/etag.c
+++ b/src/etag.c
@@ -1,5 +1,10 @@
 #include <string.h>
+
+#if defined HAVE_STDINT_H
 #include <stdint.h>
+#elif defined HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif

 #include "buffer.h" 
 #include "etag.h" 

#2 Updated by stbuehler over 6 years ago

config.h should be included before; attached corrected fix.

#3 Updated by stbuehler over 6 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in r2089

Also available in: Atom