components/postfix/patches/01-solaris-makedefs.patch
changeset 4079 4aab0107366d
child 5716 ffdc005c7dcc
equal deleted inserted replaced
4078:7cfcde36f97f 4079:4aab0107366d
       
     1 Upstream contribution is planned but has not yet occurred.
       
     2 
       
     3 --- postfix-2.11.1/makedefs.orig	2014-01-16 11:49:11.000000000 -0800
       
     4 +++ postfix-2.11.1/makedefs	2014-09-19 13:43:56.091926293 -0700
       
     5 @@ -217,9 +217,13 @@
       
     6  		case $RELEASE in
       
     7  		    5.[0-8]|5.[0-8].*) CCARGS="$CCARGS -DNO_CLOSEFROM -DNO_DEV_URANDOM -DNO_FUTIMESAT -DSTREAM_CONNECTIONS";;
       
     8  		esac
       
     9 -		# Somewhere NISPLUS went away.
       
    10 +		# NISPLUS went away in Solaris 11.
       
    11  		case $RELEASE in
       
    12 -		    5.[0-9][0-9]*) CCARGS="$CCARGS -DNO_NISPLUS";;
       
    13 +		    5.1[1-9]*) CCARGS="$CCARGS -DNO_NISPLUS";;
       
    14 +		esac
       
    15 +		# libsocket & libnsl were merged into libc in Solaris 12.
       
    16 +		case $RELEASE in
       
    17 +		    5.1[2-9]*) SYSLIBS="-lresolv -ldl"
       
    18  		esac
       
    19  		# Work around broken str*casecmp(). Do it all here instead
       
    20  		# of having half the solution in the sys_defs.h file.