[Bug 232908] mqueue.h needs to include fcntl.h

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 2 12:12:42 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232908

            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 at FreeBSD.org
          Reporter: jphartmann at 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 = 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.

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


More information about the freebsd-bugs mailing list