Edit report at https://bugs.php.net/bug.php?id=25&edit=1

 ID:                 25
 Comment by:         junxing dot lin at yahoo dot com
 Reported by:        edo at eosys dot com
 Summary:            `O_RDONLY' undeclared in unified_odbc.c
 Status:             Closed
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Linux 2.0.33
 PHP Version:        3.0b3
 Block user comment: N
 Private report:     N

 New Comment:

http://www.chishairstraighteners.net     chi flat iron
http://www.chishairstraighteners.net     chi flat irons
http://www.chishairstraighteners.net     chi hair straightener
http://www.chishairstraighteners.net     chi hair straighteners


Previous Comments:
------------------------------------------------------------------------
[1998-01-31 01:28:49] rasmus

Fixes

------------------------------------------------------------------------
[1998-01-30 23:13:04] edo at eosys dot com

Aloha!

Just a bit of a bug when compiling php-3.0b3 and current CVS tree
with unified-odbc/adabasd support:

functions/unified_odbc.c: In function `php3_uodbc_execute':
functions/unified_odbc.c:671: warning: implicit declaration of function `open'
functions/unified_odbc.c:671: `O_RDONLY' undeclared (first use this function)
functions/unified_odbc.c:671: (Each undeclared identifier is reported only once
functions/unified_odbc.c:671: for each function it appears in.)
make: *** [functions/unified_odbc.o] Error 1

After looking through the source I came up with the patch below.
I really don't see the need for the #else, but I noticed a similar
structure in another file. So, far be it for me to make any radical
changes. Anyway, here's the patch:

diff -uNr php-3.0b3-orig/functions/unified_odbc.c 
php-3.0b3/functions/unified_odbc.c
--- php-3.0b3-orig/functions/unified_odbc.c     Sat Jan 17 11:54:05 1998
+++ php-3.0b3/functions/unified_odbc.c  Fri Jan 30 17:59:52 1998
@@ -32,6 +32,7 @@
 #ifndef MSVC5
 #include "config.h"
 #include "build-defs.h"
+#include <sys/fcntl.h>
 #else
 #include <fcntl.h>
 #endif


-later, edo


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=25&edit=1

Reply via email to