[Samba] Add -D_XOPEN_SOURCE_EXTENDED definition for HP/UX 11.00 platform

René Nieuwenhuizen R.Nieuwenhuizen at cpb.nl
Fri Nov 22 11:42:00 GMT 2002


Hi,

I suggest to add the following definition to configure and its template 
configure.in to allow samba-2.2.x to be compiled on HP/UX 11.00 with 
some lesser warnings. Without this definition you'll get warnings on all 
socket operation because the socket operations are UNIX98 specific and 
HP/UX 11.00 will support this when _XOPEN_SOURCE_EXTENDED is defined.

-- 
René Nieuwenhuizen
Afdeling Informatietechnologie
Centraal Planbureau

Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag
Postadres: Postbus 80510, 2508 GM Den Haag

T (070) 3383 342
F (070) 3383 350
I http://www.cpb.nl/nl/general/org/afdelingen/it/



--
================================================================================
Aan dit bericht kunnen geen rechten worden ontleend.
Het bericht is alleen bestemd voor de geadresseerde.
Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan
ons te melden en de inhoud van het bericht te vernietigen.

This message shall not constitute any obligations.
This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and
delete its contents.
================================================================================
-------------- next part --------------
*** configure.in.orig	Mon Jun 17 20:35:09 2002
--- configure.in	Thu Jun 20 14:55:21 2002
***************
*** 36,41 ****
--- 36,48 ----
  			CFLAGS=""
  		fi
  		;;	
+ 	HP-UX)
+ 		if test "${GCC}" = "yes"; then
+ 			CFLAGS="$CFLAGS"
+ 		else
+ 			CFLAGS="-Ae -c +z"
+ 		fi
+ 		;;	
  #	Linux)
  #		CFLAGS="-Wall"
  #		;;
***************
*** 52,57 ****
--- 59,67 ----
  		;;
  	SunOS)
  		LDFLAGS="-G"
+ 		;;
+ 	HP-UX)
+ 		LDFLAGS="-b"
  		;;
  #	Linux)
  #		echo "Linux found"
-------------- next part --------------
*** configure.orig	Thu Jun 20 15:11:07 2002
--- configure	Thu Jun 20 14:57:34 2002
***************
*** 811,816 ****
--- 811,823 ----
  			CFLAGS=""
  		fi
  		;;	
+ 	HP-UX)
+ 		if test "${GCC}" = "yes"; then
+ 			CFLAGS="$CFLAGS"
+ 		else
+ 			CFLAGS="-Ae -c +z"
+ 		fi
+ 		;;	
  #	Linux)
  #		CFLAGS="-Wall"
  #		;;
***************
*** 827,832 ****
--- 834,842 ----
  		;;
  	SunOS)
  		LDFLAGS="-G"
+ 		;;
+ 	HP-UX)
+ 		LDFLAGS="-b"
  		;;
  #	Linux)
  #		echo "Linux found"


More information about the samba mailing list