Ticket #1413 (closed defect: fixed)

Opened 7 months ago

Last modified 3 months ago

slight compilation problem in src/etag.c

Reported by: jhi at-at iki.fi Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.4.18
Severity: normal Keywords: patch
Cc: Blocking:
Need Feedback: 0

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"

Attachments

0010-Fix-including-of-stdint.h.patch (0.6 kB) - added by stbuehler on 02/18/2008 02:27:33 PM.

Change History

02/17/2008 09:05:43 PM changed by stbuehler

  • keywords set to patch.
--- 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"

02/18/2008 02:27:33 PM changed by stbuehler

  • attachment 0010-Fix-including-of-stdint.h.patch added.

02/18/2008 02:28:04 PM changed by stbuehler

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

02/26/2008 04:31:11 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2089]


Add/Change #1413 (slight compilation problem in src/etag.c)




Change Properties
Action