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 header declares struct posix_typed_mem_info with at least the 11 * following member: 12 * size_t posix_tmi_length 13 * 14 * @pt:TYM 15 */ 16 17 #include <sys/mman.h> 18 #include <unistd.h> 19 20 #if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 21 22 struct posix_typed_mem_info this_type_should_exist, t; 23 24 int dummyfcn(void) 25 { 26 size_t sz = 0; 27 28 t.posix_tmi_length = sz; 29 30 return 0; 31 } 32 33 #endif 34