patches/iodine-01-solaris.diff
author trisk
Sat, 30 Apr 2011 06:16:39 +0000
changeset 3438 a1dade982b66
parent 1151 57ba40acfb7f
permissions -rw-r--r--
2011-04-30 Albert Lee <[email protected]> * SFEiodine.spec: Bump to 0.6.0-rc1. Add patch1, patch2. * SFEredshift.spec: Bump to 1.6. Support Studio. Update patch1, add patch2, patch3 for GNOME clock support. * patches/iodine-01-solaris.diff: Add defines and -lresolv * patches/iodine-02-nogcc.diff: Remove gcc-specific flags * patches/redshift-01-signal.h.diff: Update for 1.6 * patches/redshift-02-clock-applet.diff: Support new GNOME applet * patches/redshift-03-gerror-leak.diff: Add JDS support, fix leak * patches/sshfs-fuse-01-sunpro.diff: Fix sshnodelay.so

--- iodine-0.6.0-rc1.orig/src/osflags	2009-06-24 13:28:13.000000000 -0400
+++ iodine-0.6.0-rc1/src/osflags	2011-03-29 01:25:15.558471151 -0400
@@ -5,7 +5,7 @@
 
 	case $1 in
 		SunOS | solaris)
-			echo '-lsocket -lnsl';
+			echo '-lsocket -lnsl -lresolv';
 		;;
 		BeOS)
 			echo '-lsocket -lbind -lbsd';
@@ -23,6 +23,9 @@
 	;;
 cflags)
 	case $1 in
+		SunOS | solaris)
+			echo '-D_XOPEN_SOURCE=500 -D__EXTENSIONS__';
+		;;
 		BeOS)
 			echo '-Dsocklen_t=int';
 		;;