Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132522948
D26256.id76430.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
981 B
Referenced Files
None
Subscribers
None
D26256.id76430.diff
View Options
Index: lib/libc/gen/scandir.c
===================================================================
--- lib/libc/gen/scandir.c
+++ lib/libc/gen/scandir.c
@@ -56,15 +56,18 @@
#define SELECT(x) select(x)
#endif
-#ifndef I_AM_SCANDIR_B
+#ifdef I_AM_SCANDIR_B
+typedef DECLARE_BLOCK(int, select_block, const struct dirent *);
+typedef DECLARE_BLOCK(int, dcomp_block, const struct dirent **,
+ const struct dirent **);
+#else
static int alphasort_thunk(void *thunk, const void *p1, const void *p2);
#endif
int
#ifdef I_AM_SCANDIR_B
-scandir_b(const char *dirname, struct dirent ***namelist,
- DECLARE_BLOCK(int, select, const struct dirent *),
- DECLARE_BLOCK(int, dcomp, const struct dirent **, const struct dirent **))
+scandir_b(const char *dirname, struct dirent ***namelist, select_block select,
+ dcomp_block dcomp)
#else
scandir(const char *dirname, struct dirent ***namelist,
int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 18, 3:52 PM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23885233
Default Alt Text
D26256.id76430.diff (981 B)
Attached To
Mode
D26256: Fix the build of scandir_b with GCC.
Attached
Detach File
Event Timeline
Log In to Comment