summaryrefslogtreecommitdiff
path: root/audio/daapd/patches/patch-libhttpd_configure
blob: b17e828da6e20a85a4222e80a0f1bc2e1e8be877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-libhttpd_configure,v 1.1 2011/09/12 05:01:15 dholland Exp $

Since the package makefiles configure and build this library with a
C++ compiler (even though AFAICT it's C code) the configure script had
better use a valid C++ test program to see if the compiler works.

--- libhttpd/configure~	2006-03-05 13:39:37.000000000 +0000
+++ libhttpd/configure
@@ -662,7 +662,7 @@ cat > conftest.$ac_ext << EOF
 #line 663 "configure"
 #include "confdefs.h"
 
-main(){return(0);}
+int main(){return(0);}
 EOF
 if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes