File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 15
15
* reserved.
16
16
* Copyright (c) 2016-2017 Research Organization for Information Science
17
17
* and Technology (RIST). All rights reserved.
18
- * Copyright (c) 2016-2019 IBM Corporation. All rights reserved.
18
+ * Copyright (c) 2016-2020 IBM Corporation. All rights reserved.
19
19
*
20
20
* $COPYRIGHT$
21
21
*
@@ -334,6 +334,18 @@ static int intercept_brk (void *addr)
334
334
335
335
#endif
336
336
337
+ // These op codes used to be in bits/ipc.h but were removed in glibc in 2015
338
+ // with a comment saying they should be defined in internal headers:
339
+ // https://sourceware.org/bugzilla/show_bug.cgi?id=18560
340
+ // and when glibc uses that syscall it seems to do so from its own definitions:
341
+ // https://github.com/bminor/glibc/search?q=IPCOP_shmat&unscoped_q=IPCOP_shmat
342
+ #ifndef IPCOP_shmat
343
+ #define IPCOP_shmat 21
344
+ #endif
345
+ #ifndef IPCOP_shmdt
346
+ #define IPCOP_shmdt 22
347
+ #endif
348
+
337
349
#if defined(SYS_shmdt ) || (defined(IPCOP_shmdt ) && defined(SYS_ipc ))
338
350
#define HAS_SHMDT 1
339
351
#else
You can’t perform that action at this time.
0 commit comments