Index: src/file.c ================================================================== --- src/file.c +++ src/file.c @@ -24,10 +24,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include #include + +#include #include #include #include "stream.h" Index: src/tcpsocket.c ================================================================== --- src/tcpsocket.c +++ src/tcpsocket.c @@ -21,10 +21,12 @@ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ + +#define _POSIX_SOURCE #include #include #include