Re: [dev] ii missing include?

From: Nico Golde <nico_AT_ngolde.de>
Date: Tue, 14 Aug 2012 11:58:02 +0200

Hi,
* Edgaras <devoas_AT_gmail.com> [2012-08-14 11:40]:
> I was trying to compile ii against musl, and I found that it seems ii.c is
> missing include declaration namely
> #include <sys/select.h>
> otherwise fd_set is undefined and most likely select() too. I do not know how
> it compiles with gnu libc, or maybe this is problem with musl and select.h
> should be included from some other header file, I do not know.

/* According to POSIX.1-2001 */
#include <sys/select.h>

/* According to earlier standards */
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>

Anyway, I added the include.

Cheers
Nico

-- 
Nico Golde - http://www.ngolde.de - nion_AT_jabber.ccc.de - GPG: 0xA0A0AAAA
For security reasons, all text in this mail is double-rot13 encrypted.

Received on Tue Aug 14 2012 - 11:58:02 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 14 2012 - 12:00:07 CEST