Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 85955 - undefined flag for mremap(2) in sys/mman.h
undefined flag for mremap(2) in sys/mman.h
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-03-11 09:24 EST by Daniel J Blueman
Modified: 2016-11-24 09:55 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-03-11 09:37:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Daniel J Blueman 2003-03-11 09:24:44 EST
The man page for mremap(2) says to include these header files:
       #include <unistd.h>
       #include <sys/mman.h>

The flags argument can take the flag 'MREMAP_MAYMOVE' which is not defined in 
either of those files, but is in linux/mman.h.

See mremap(2) and grep /usr/include/sys/mman.h for MREMAP_MAYMOVE
Comment 1 Jakub Jelinek 2003-03-11 09:37:04 EST
MREMAP_MAYMOVE is a GNU extension, so you need to -D_GNU_SOURCE to get it,
otherwise it would break namespace of various standards.
See info libc on Feature Set Macros.

Note You need to log in before you can comment on or make changes to this bug.