minhttp icon indicating copy to clipboard operation
minhttp copied to clipboard

minhttp won't build on OSX

Open marcomorain opened this issue 14 years ago • 1 comments

Hi Stephen,

Here is the output of trying to build on OSX:

marc@kingboo ~/dev/minhttp $ gcc minhttp.c minhttp.c:1:81: error: sys/sendfile.h: No such file or directory minhttp.c: In function ‘main’: minhttp.c:35: warning: passing argument 4 of ‘sendfile’ makes pointer from integer without a cast minhttp.c:35: error: too few arguments to function ‘sendfile’

marc@kingboo ~/dev/minhttp $ gcc -v Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)

marcomorain avatar Jun 24 '11 19:06 marcomorain

Here is the manpage for osx sendfile:

http://developer.apple.com/library/ios/#documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendfile.2.html

marcomorain avatar Jun 24 '11 19:06 marcomorain