cvs: php4 /ext/dio dio.c

From: Date: Sun, 24 Mar 2002 21:16:03 +0000
Subject: cvs: php4 /ext/dio dio.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10663@lists.php.net to get a copy of this message
sterling Sun Mar 24 16:16:03 2002 EDT Modified files: /php4/ext/dio dio.c Log: fix freebsd compile Index: php4/ext/dio/dio.c diff -u php4/ext/dio/dio.c:1.8 php4/ext/dio/dio.c:1.9 --- php4/ext/dio/dio.c:1.8 Sat Mar 23 18:47:53 2002 +++ php4/ext/dio/dio.c Sun Mar 24 16:16:02 2002 @@ -74,6 +74,8 @@ #define RDIOC(c) REGISTER_LONG_CONSTANT(#c, c, CONST_CS | CONST_PERSISTENT) +#define DIO_UNDEF_CONST -1 + PHP_MINIT_FUNCTION(dio) { le_fd = zend_register_list_destructors_ex(_dio_close_fd, NULL, le_fd_name, module_number); @@ -87,7 +89,9 @@ RDIOC(O_APPEND); RDIOC(O_NONBLOCK); RDIOC(O_NDELAY); +#ifdef O_SYNC RDIOC(O_SYNC); +#endif RDIOC(O_NOCTTY); RDIOC(S_IRWXU); RDIOC(S_IRUSR);

« previous php.cvs (#10663) next »