[csw-devel] SF.net SVN: gar:[18377] csw/mgar/pkg/tn5250/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Wed Jun 13 04:27:29 CEST 2012


Revision: 18377
          http://gar.svn.sourceforge.net/gar/?rev=18377&view=rev
Author:   bdwalton
Date:     2012-06-13 02:27:29 +0000 (Wed, 13 Jun 2012)
Log Message:
-----------
tn5250/trunk: ensure we have FIONBIO defined by including sys/filio.h where required

Modified Paths:
--------------
    csw/mgar/pkg/tn5250/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/tn5250/trunk/files/0001-Ensure-we-have-FIONBIO-defined.patch

Modified: csw/mgar/pkg/tn5250/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tn5250/trunk/Makefile	2012-06-13 02:15:25 UTC (rev 18376)
+++ csw/mgar/pkg/tn5250/trunk/Makefile	2012-06-13 02:27:29 UTC (rev 18377)
@@ -15,6 +15,7 @@
 
 MASTER_SITES = $(SF_MIRRORS)
 DISTFILES  = $(DISTNAME).tar.gz
+PATCHFILES += 0001-Ensure-we-have-FIONBIO-defined.patch
 
 GARCOMPILER = GNU
 

Added: csw/mgar/pkg/tn5250/trunk/files/0001-Ensure-we-have-FIONBIO-defined.patch
===================================================================
--- csw/mgar/pkg/tn5250/trunk/files/0001-Ensure-we-have-FIONBIO-defined.patch	                        (rev 0)
+++ csw/mgar/pkg/tn5250/trunk/files/0001-Ensure-we-have-FIONBIO-defined.patch	2012-06-13 02:27:29 UTC (rev 18377)
@@ -0,0 +1,62 @@
+From efd27be644cb0679377690e41469c57d31c4e670 Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Wed, 13 Jun 2012 04:12:40 +0200
+Subject: [PATCH] Ensure we have FIONBIO defined
+
+Include sys/filio.h in files that use the FIONBIO constant.
+
+Signed-off-by: Ben Walton <bwalton at opencsw.org>
+---
+ lib5250/sslstream.c |    4 ++++
+ lib5250/telnetstr.c |    4 ++++
+ lib5250/utility.c   |    4 ++++
+ 3 files changed, 12 insertions(+)
+
+diff --git a/lib5250/sslstream.c b/lib5250/sslstream.c
+index 7181566..d4d0342 100644
+--- a/lib5250/sslstream.c
++++ b/lib5250/sslstream.c
+@@ -30,6 +30,10 @@
+ #include <openssl/err.h>
+ #include <time.h>
+ 
++#if defined (__SVR4) && defined (__sun)
++#include <sys/filio.h>
++#endif
++
+ static int ssl_stream_get_next(Tn5250Stream *This,unsigned char *buf,int size);
+ static void ssl_stream_do_verb(Tn5250Stream * This, unsigned char verb, unsigned char what);
+ static int ssl_stream_host_verb(Tn5250Stream * This, unsigned char verb,
+diff --git a/lib5250/telnetstr.c b/lib5250/telnetstr.c
+index 9ad2624..7fa2688 100644
+--- a/lib5250/telnetstr.c
++++ b/lib5250/telnetstr.c
+@@ -21,6 +21,10 @@
+  */
+ #include "tn5250-private.h"
+ 
++#if defined (__SVR4) && defined (__sun)
++#include <sys/filio.h>
++#endif
++
+ static int telnet_stream_get_next(Tn5250Stream * This, unsigned char *buf, int size);
+ static void telnet_stream_do_verb(Tn5250Stream * This, unsigned char verb, unsigned char what);
+ static int telnet_stream_host_verb(Tn5250Stream * This, unsigned char verb,
+diff --git a/lib5250/utility.c b/lib5250/utility.c
+index 9f55b36..c736697 100644
+--- a/lib5250/utility.c
++++ b/lib5250/utility.c
+@@ -22,6 +22,10 @@
+ #include "tn5250-private.h"
+ #include "transmaps.h"
+ 
++#if defined (__SVR4) && defined (__sun)
++#include <sys/filio.h>
++#endif
++
+ static char mapfix[256];
+ static char mapfix2[256];
+ static char mapfix3[256];
+-- 
+1.7.10.3
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list