Skip to content

Commit a7a5bb9

Browse files
committed
RunLoop: silence a -Wvisibility warning
The parameter type was declared in the declaration making the type invisible to all other code as the type becomes anonymous. Forward declare the structure.
1 parent b9d7049 commit a7a5bb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: CoreFoundation/RunLoop.subproj/CFSocket.c

+1
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ typedef int32_t fd_mask;
990990
typedef int socklen_t;
991991

992992
#define gettimeofday _NS_gettimeofday
993+
struct timezone;
993994
CF_PRIVATE int _NS_gettimeofday(struct timeval *tv, struct timezone *tz);
994995

995996
// although this is only used for debug info, we define it for compatibility

0 commit comments

Comments
 (0)