Problem: struct sockaddr_un redefinition

The definition of sockaddr_un should be protected by the include guard.
This commit is contained in:
myd7349 2021-11-25 08:23:27 +08:00
parent 5eb0b00c87
commit 471ea68caf

View File

@ -90,7 +90,6 @@ static inline int poll (struct pollfd *pfd, unsigned long nfds, int timeout)
#ifndef AI_NUMERICSERV #ifndef AI_NUMERICSERV
#define AI_NUMERICSERV 0x0400 #define AI_NUMERICSERV 0x0400
#endif #endif
#endif
// In MSVC prior to v14, snprintf is not available // In MSVC prior to v14, snprintf is not available
// The closest implementation is the _snprintf_s function // The closest implementation is the _snprintf_s function
@ -108,3 +107,5 @@ struct sockaddr_un
char sun_path[108]; /* pathname */ char sun_path[108]; /* pathname */
}; };
#endif #endif
#endif