View Issue Details

IDProjectCategoryView StatusLast Update
0001494libmicrohttpdportabilitypublic2010-09-10 15:32
Reporterdaniel Assigned ToChristian Grothoff  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.4.3 
Summary0001494: missing #includes in microhttpd.h
DescriptionHi,

this is a forward of http://bugs.debian.org/547317

  "It seems like microhttpd.h can't be included by itself, but requires a
  few headers to be included first. At least I think stdlib.h, unistd.h,
  stdint.h and stdarg.h are required. Could this either be added to the
  .h file or at least the documentation?"

Regards,
Daniel
TagsNo tags attached.

Activities

epienbro

2009-09-19 12:13

reporter   ~0003882

This bug has also been reported in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=521696

root

2009-09-24 07:39

administrator   ~0003883

The problem is that some of these headers are not available on systems that MHD works fine on (and I didn't want to put a generated config.h or similar into /usr/include/), so the documentation DOES state that you need to include those (or equivalent) headers before including microhttpd.h.

Now, I'm not saying that this is documented everywhere whare it should be documented, so I'll leave this bug open until I think documentation-adequacy has been reached ;-).

Christian Grothoff

2009-10-29 02:47

manager   ~0003886

Added needed #includes to the man page (man libmicrohttpd).

Christian Grothoff

2010-07-26 20:13

manager   ~0004079

Updated examples in tutorial to add needed headers.

Christian Grothoff

2010-09-01 14:01

manager   ~0004113

Hopefully better (final) fix is now in SVN 12790.

Issue History

Date Modified Username Field Change
2009-09-19 02:12 daniel New Issue
2009-09-19 12:13 epienbro Note Added: 0003882
2009-09-24 07:39 root Note Added: 0003883
2009-10-29 02:47 Christian Grothoff Note Added: 0003886
2009-11-15 14:38 Christian Grothoff Assigned To => Christian Grothoff
2009-11-15 14:38 Christian Grothoff Status new => acknowledged
2010-07-26 20:13 Christian Grothoff Note Added: 0004079
2010-07-26 20:14 Christian Grothoff Severity minor => tweak
2010-07-26 20:14 Christian Grothoff Category other => portability
2010-09-01 14:01 Christian Grothoff Note Added: 0004113
2010-09-01 14:01 Christian Grothoff Status acknowledged => resolved
2010-09-01 14:01 Christian Grothoff Resolution open => fixed
2010-09-10 15:32 Christian Grothoff Status resolved => closed