summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-11-08 15:28:42 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-11-08 15:28:42 +0000
commit4e544943de0a72903d9960c0c93a18af8318bd29 (patch)
treea0b745e1d55d3a6ed6c75a697766c548955a89b0 /src
parenta90ca2d60a0cdf699410be34fde62a03558715b4 (diff)
Removed the HP-UX hack (again) for select(); it ain't needed!
git-svn-id: file:///fltk/svn/fltk/trunk@71 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_x.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index d5d8bad24..46fdbcb3d 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_x.cxx,v 1.7 1998/10/21 14:20:37 mike Exp $"
+// "$Id: Fl_x.cxx,v 1.8 1998/11/08 15:28:42 mike Exp $"
//
// X specific code for the Fast Light Tool Kit (FLTK).
//
@@ -48,13 +48,19 @@ struct pollfd {int fd; short events; short revents;};
#define POLLIN 1
#define POLLOUT 4
#define POLLERR 8
+
#ifdef __sgi // fix bugs in Irix's select header:
-//inline static void bzero(void *b, int l) {memset(b,0,l);}
extern "C" int select( int, fd_set *, fd_set *, fd_set *, struct timeval * );
#endif
-#ifdef hpux // fix from wm2:
-#define select(a,b,c,d,e) select((a),(int *)(b),(int *)(c),(int *)(d),(e))
-#endif
+
+//
+// The following #define is only needed for HP-UX 9.x and earlier. 10.x
+// and beyond have the right stuff, and any good GCC distribution fixes
+// this, too!
+//
+
+//#define select(a,b,c,d,e) select((a),(int *)(b),(int *)(c),(int *)(d),(e))
+
#ifdef __EMX__
#include <sys/select.h>
#endif
@@ -807,5 +813,5 @@ void Fl_Window::flush() {
#endif
//
-// End of "$Id: Fl_x.cxx,v 1.7 1998/10/21 14:20:37 mike Exp $".
+// End of "$Id: Fl_x.cxx,v 1.8 1998/11/08 15:28:42 mike Exp $".
//