[quake3-bugzilla] [Bug 4994] New: OpenBSD compilation fixes

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sat May 21 10:51:55 EDT 2011


https://bugzilla.icculus.org/show_bug.cgi?id=4994

           Summary: OpenBSD compilation fixes
           Product: ioquake3
           Version: SVN HEAD
          Platform: PC
        OS/Version: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Platform
        AssignedTo: zakk at icculus.org
        ReportedBy: jsg at goblin.cx
         QAContact: quake3-bugzilla at icculus.org


Created attachment 2718
  --> https://bugzilla.icculus.org/attachment.cgi?id=2718
OpenBSD build fixes

The attached diff enables non i386 OpenBSD platforms (tested on amd64/i386) and
fixes include order.

Not including the following hunk found in the local OpenBSD patches for
openarena which while it compiled in the end looks wrong

Index: code/client/libmumblelink.c
===================================================================
--- code/client/libmumblelink.c (revision 1997)
+++ code/client/libmumblelink.c (working copy)
@@ -101,7 +101,11 @@
                return 0;

        snprintf(file, sizeof (file), "/MumbleLink.%d", getuid());
+#ifdef __OpenBSD__
+       shmfd = open(file, O_RDWR, S_IRUSR | S_IWUSR);
+#else
        shmfd = shm_open(file, O_RDWR, S_IRUSR | S_IWUSR);
+#endif
        if(shmfd < 0) {
                return -1;
        }

What is the correct way of dealing with a lack of shm_open here?

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list