-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpkg/glibc: changing 'shared memory' location (#166)
- Loading branch information
Showing
3 changed files
with
402 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- src/sysdeps/pthread/sem_open.c 2023-07-31 20:54:16.000000000 +0300 | ||
+++ src/sysdeps/pthread/sem_open.c.patch 2023-12-06 23:03:24.669640461 +0300 | ||
@@ -28,7 +28,7 @@ | ||
|
||
#if !PTHREAD_IN_LIBC | ||
/* The private names are not exported from libc. */ | ||
-# define __link link | ||
+# define __symlink symlink | ||
# define __unlink unlink | ||
#endif | ||
|
||
@@ -168,7 +168,7 @@ | ||
fd, 0)) != MAP_FAILED) | ||
{ | ||
/* Create the file. Don't overwrite an existing file. */ | ||
- if (__link (tmpfname, dirname.name) != 0) | ||
+ if (__symlink (tmpfname, dirname.name) != 0) | ||
{ | ||
/* Undo the mapping. */ | ||
__munmap (result, sizeof (sem_t)); |
Oops, something went wrong.