Project

General

Profile

Bug #1413

slight compilation problem in src/etag.c

Added by Anonymous almost 13 years ago. Updated over 12 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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


Files

#1

Updated by stbuehler over 12 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 12 years ago

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

#3

Updated by stbuehler over 12 years ago

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

Fixed in r2089

Also available in: Atom