Home | History | Annotate | Download | only in mman_h
      1 /*
      2  *  This program is free software; you can redistribute it and/or modify
      3  *  it under the terms of the GNU General Public License version 2.
      4  *
      5  *  This program is distributed in the hope that it will be useful,
      6  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
      7  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      8  *  GNU General Public License for more details.
      9  *
     10  * Test that the sys/mman.h header file exists when the implementation supports
     11  * at least one of the following options:
     12  *  MF
     13  *  SHM
     14  *  ML
     15  *  MPR
     16  *  TYM
     17  *  SIO
     18  *  ADV
     19  */
     20 
     21 #include <unistd.h>
     22 
     23 #if defined(_POSIX_ADVISORY_INFO) || defined(_POSIX_MAPPED_FILES) || \
     24     defined(_POSIX_MEMLOCK) || defined(_POSIX_MEMORY_PROTECTION) || \
     25     defined(_POSIX_SHARED_MEMORY_OBJECTS) || \
     26     defined(_POSIX_SYNCHRONIZED_IO) || defined(_POSIX_TYPED_MEMORY_OBJECTS)
     27 
     28 #include <sys/mman.h>
     29 
     30 #endif
     31