Skip to content

Commit 5ec497d

Browse files
committed
Cygwin: don't export arc4random_addrandom/arc4random_stir
Keep the functions for backward compatibility, but don't export them from libcygwin.a for new applications. Drop the workaround from commit ad29c33 ("Cygwin: stdlib.h: revert declaring arc4random_stir() as function"). Fixes: ad29c33 ("Cygwin: stdlib.h: revert declaring arc4random_stir() as function") Signed-off-by: Corinna Vinschen <[email protected]>
1 parent 1409c78 commit 5ec497d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

winsup/cygwin/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ VERSION_OFILES = version.o winver.o
459459
#
460460

461461
NEW_FUNCTIONS=$(addprefix --replace=,\
462+
arc4random_addrandom= \
463+
arc4random_stir= \
462464
atexit= \
463465
timezone= \
464466
uname=uname_x \

winsup/cygwin/include/cygwin/stdlib.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ extern "C"
2020
const char *getprogname (void);
2121
void setprogname (const char *);
2222

23-
#if __BSD_VISIBLE
24-
/* Cygwin exports arc4random_stir() for backward compatibility.
25-
Keep the declaration compatible with libbsd. */
26-
void arc4random_stir(void);
27-
#endif
2823
#if __GNU_VISIBLE
2924
char *canonicalize_file_name (const char *);
3025
#endif

0 commit comments

Comments
 (0)