mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
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
This commit is contained in:
+12
-6
@@ -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).
|
// 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 POLLIN 1
|
||||||
#define POLLOUT 4
|
#define POLLOUT 4
|
||||||
#define POLLERR 8
|
#define POLLERR 8
|
||||||
|
|
||||||
#ifdef __sgi // fix bugs in Irix's select header:
|
#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 * );
|
extern "C" int select( int, fd_set *, fd_set *, fd_set *, struct timeval * );
|
||||||
#endif
|
#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__
|
#ifdef __EMX__
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -807,5 +813,5 @@ void Fl_Window::flush() {
|
|||||||
#endif
|
#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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user