Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit bdf29915 authored by rswindell's avatar rswindell

Added missing #includes for Unix build.

parent afd2eaa7
......@@ -40,6 +40,10 @@
#include "wrapdll.h" /* DLLEXPORT and DLLCALL */
#if defined(__unix__)
#include <unistd.h> /* read, write, close, ftruncate, lseek, etc. */
#endif
/**********/
/* Macros */
/**********/
......
......@@ -40,8 +40,10 @@
#include <fcntl.h> /* O_NOCTTY */
#include <time.h> /* clock() */
#include <errno.h> /* errno */
#include <ctype.h> /* toupper/tolower */
#if defined(__unix__)
#include <sys/ioctl.h> /* ioctl() */
#include <sys/utsname.h> /* uname() */
/* KIOCSOUND */
#if defined(__FreeBSD__)
......
......@@ -42,6 +42,10 @@
#include "gen_defs.h" /* ulong */
#include "wrapdll.h" /* DLLEXPORT and DLLCALL */
#if defined(__unix__)
#include <unistd.h> /* usleep */
#endif
#if defined(__cplusplus)
extern "C" {
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment