You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@hyperreal.org on 1999/10/04 15:37:20 UTC
cvs commit: apache-2.0/src/lib/apr/file_io/unix dir.c fileacc.c
rbb 99/10/04 06:37:20
Modified: src/lib/apr/file_io/unix dir.c fileacc.c
Log:
Ifdef out the code that checks to make sure the file descriptor isn't a
socket. BeOS files cannot be sockets, so this code isn't needed and won't
compile.
Submitted by: David Reid
Revision Changes Path
1.4 +2 -0 apache-2.0/src/lib/apr/file_io/unix/dir.c
Index: dir.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/dir.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- dir.c 1999/10/01 16:18:28 1.3
+++ dir.c 1999/10/04 13:37:19 1.4
@@ -264,8 +264,10 @@
*type = APR_PIPE;
if (S_ISLNK(filestat.st_mode))
*type = APR_LNK;
+#ifndef BEOS
if (S_ISSOCK(filestat.st_mode))
*type = APR_SOCK;
+#endif
return APR_SUCCESS;
}
1.6 +2 -0 apache-2.0/src/lib/apr/file_io/unix/fileacc.c
Index: fileacc.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/fileacc.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- fileacc.c 1999/10/01 16:18:28 1.5
+++ fileacc.c 1999/10/04 13:37:19 1.6
@@ -238,8 +238,10 @@
*type = APR_PIPE;
if (S_ISLNK(file->protection))
*type = APR_LNK;
+#ifndef BEOS
if (S_ISSOCK(file->protection))
*type = APR_SOCK;
+#endif
return APR_SUCCESS;
}
else {