Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Nov 2018 12:12:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232908] mqueue.h needs to include fcntl.h
Message-ID:  <bug-232908-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232908

            Bug ID: 232908
           Summary: mqueue.h needs to include fcntl.h
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: jphartmann@gmail.com

If the source file that includes mqueue.h does no other UNIX I/O, O_RDWR is
likely undeclared.  Manually including fcntl.h fixes the compiler error.

mq.c: In function 'openqueue':
mq.c:41:35: error: 'O_RDWR' undeclared (first use in this function); did you
mean '__SWR'?
    mq->handle =3D mq_open(mq->name, O_RDWR | O_CREAT, 0600, &att);

Apologies if this is reported in the wrong place.  I am not aware of having
installed any package to obtain the message queueing service, so base system
seems appropriate.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232908-227>