diff options
author | Gonzalo Exequiel Pedone | 2024-03-07 23:31:07 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-03-07 23:31:07 -0300 |
commit | 0acd50d3f482a726f61badd88e37967e23a021f6 (patch) | |
tree | b0a1b18bebc8b4aa734791ee41d656f8de4d34fc /0001-Remove-shmctl.patch | |
download | aur-0acd50d3f482a726f61badd88e37967e23a021f6.tar.gz |
New package.
Diffstat (limited to '0001-Remove-shmctl.patch')
-rw-r--r-- | 0001-Remove-shmctl.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/0001-Remove-shmctl.patch b/0001-Remove-shmctl.patch new file mode 100644 index 000000000000..8c562c94e05e --- /dev/null +++ b/0001-Remove-shmctl.patch @@ -0,0 +1,19 @@ +--- a/opal/mca/memory/patcher/memory_patcher_component.c ++++ b/opal/mca/memory/patcher/memory_patcher_component.c +@@ -461,15 +461,7 @@ + + static size_t get_shm_size(int shmid) + { +- struct shmid_ds ds; +- int ret; +- +- ret = shmctl(shmid, IPC_STAT, &ds); +- if (ret < 0) { +- return 0; +- } +- +- return ds.shm_segsz; ++ return 0; + } + # endif + #endif |