[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Problem with mime contents
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] Problem with mime contents |
Date: |
Wed, 3 Aug 2011 10:35:24 +0200 |
User-agent: |
KMail/1.13.7 (Linux/2.6.39-1-amd64; KDE/4.6.5; x86_64; ; ) |
Hi!
Try adding
#define_FILE_OFFSET_BITS 64
as the first line of responseheaders.c. I suspect you compiled MHD (as is
common these days) with large-file (64-bit off_t) support but didn't use a
proper build system for 'responseheaders.c' and hence got a 32-bit off_t, which
causes problems.
Happy hacking,
Christian
On Wednesday, August 03, 2011 08:55:11 AM Sanjeev Raj Wagle wrote:
> Hello everyone,
>
> I am having problems with displaying images via microhttpd server. I
> compiled the responseheaders.c provided in the example section and run the
> server.
>
> All i see is the link location of the server on the browser, instead of
> the image.
> When i copy the image data into a buffer and display from that buffer,
> image is shown well.
>
> Please help fixing the problem.
>
> NB: i am using the responseheaders.c provided in the examples section
> without any modification.
>
> Thanks in advance