Project

General

Profile

Actions

Bug #1413

closed

slight compilation problem in src/etag.c

Added by Anonymous about 17 years ago. Updated almost 17 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

Actions #1

Updated by stbuehler almost 17 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" 
Actions #2

Updated by stbuehler almost 17 years ago

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

Actions #3

Updated by stbuehler almost 17 years ago

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

Fixed in r2089

Actions

Also available in: Atom