$NetBSD: patch-ab,v 1.4 2025/10/12 01:00:48 mrg Exp $

--- configure.orig	1999-01-24 11:49:40.000000000 -0800
+++ configure	2025-10-11 15:53:01.625572560 -0700
@@ -639,7 +639,7 @@ cross_compiling=$ac_cv_prog_cc_cross
 cat > conftest.$ac_ext <<EOF
 #line 641 "configure"
 #include "confdefs.h"
-main(){return(0);}
+int main(){return(0);}
 EOF
 if { (eval echo configure:645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   ac_cv_prog_cc_works=yes
@@ -1573,7 +1575,7 @@ $extrasub
 s%@CFLAGS@%$CFLAGS%g
 s%@CPPFLAGS@%$CPPFLAGS%g
 s%@CXXFLAGS@%$CXXFLAGS%g
-s%@DEFS@%$DEFS%g
+s%@DEFS@%$CFLAGS $DEFS%g
 s%@LDFLAGS@%$LDFLAGS%g
 s%@LIBS@%$LIBS%g
 s%@exec_prefix@%$exec_prefix%g
