diff -urN postgresql-9.0.4/configure.in postgresql-9.0.4-haiku/configure.in --- postgresql-9.0.4/configure.in 2011-04-15 03:15:53.000000000 +0000 +++ postgresql-9.0.4-haiku/configure.in 2011-07-15 16:30:31.934543360 +0000 @@ -861,7 +861,7 @@ AC_CHECK_LIB(m, main) AC_SEARCH_LIBS(setproctitle, util) AC_SEARCH_LIBS(dlopen, dl) -AC_SEARCH_LIBS(socket, [socket wsock32]) +AC_SEARCH_LIBS(socket, [socket wsock32 network]) AC_SEARCH_LIBS(shl_load, dld) # We only use libld in port/dynloader/aix.c case $host_os in diff -urN postgresql-9.0.4/src/template/haiku postgresql-9.0.4-haiku/src/template/haiku --- postgresql-9.0.4/src/template/haiku 1970-01-01 00:00:00.000000000 +0000 +++ postgresql-9.0.4-haiku/src/template/haiku 2011-07-15 16:26:54.707264512 +0000 @@ -0,0 +1,3 @@ +case $host_os in + haiku*) ;; +esac