Russ Cox is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

rsc / plan9port http://swtch.com/plan9port/

Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems. See the web site http://swtch.com/plan9port/ for details.

Clone this repository (size: 58.2 MB): HTTPS / SSH
hg clone https://bitbucket.org/rsc/plan9port
hg clone ssh://hg@bitbucket.org/rsc/plan9port

Issues

#88 build errors and warnings at OpenBSD 5.0

Reported anonymously

patchset included:

  • fixes _p9dir.c:55: error: 'DIOCGDINFO' undeclared
  • fixes dirread.c:26: warning: passing argument 4 of 'getdirentries' from incompatible pointer type
Index: _p9dir.c
===================================================================
RCS file: /cvs/plan9/src/lib9/_p9dir.c,v
retrieving revision 1.31
diff -u -r1.31 _p9dir.c
--- _p9dir.c    18 Nov 2009 09:12:10 -0000      1.31
+++ _p9dir.c    17 Nov 2011 09:11:56 -0000
@@ -43,6 +43,7 @@
 #elif defined(__OpenBSD__)
 #define _HAVESTGEN
 #include <sys/disklabel.h>
+#include <sys/dkio.h>
 #include <sys/ioctl.h>
 static vlong
 disksize(int fd, struct stat *st)
Index: dirread.c
===================================================================
RCS file: /cvs/plan9/src/lib9/dirread.c,v
retrieving revision 1.20
diff -u -r1.20 dirread.c
--- dirread.c   13 Sep 2009 21:28:51 -0000      1.20
+++ dirread.c   17 Nov 2011 09:11:56 -0000
@@ -22,7 +22,11 @@
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
+#if defined(__OpenBSD__)
+       off_t off;
+#else
        long off;
+#endif
        return getdirentries(fd, (void*)buf, n, &off);
 }
 #elif defined(__sun__) || defined(__NetBSD__)
Status: new Responsible: nobody Type: bug Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

No comments added for this issue yet.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?