@@ -15,6 +15,8 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <stdio.h>
#include <netdb.h>
#include <arpa/inet.h>
@@ -32,6 +32,8 @@
* SUCH DAMAGE.
#include <ctype.h>
#include <netinet/in.h>
* SOFTWARE.
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -83,7 +83,7 @@ int getsockopt(int fd, int level, int optname, __ptr_t optval,
#endif
#ifdef L_listen
-int listen(int sockfd, unsigned int backlog)
+int listen(int sockfd, int backlog)
{
unsigned long args[2];