1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 04:03:25 +01:00

Add feature flags and missing #includes.

These are needed to compile on some strict Linuxes.
This commit is contained in:
iphydf 2020-04-15 21:34:30 +00:00
parent 51e1ab94b3
commit dd5fa236ae
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
19 changed files with 25 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include <stdbool.h>
#include <curses.h>
#include <string.h>
#include <strings.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>

View File

@ -20,6 +20,9 @@
*
*/
/* TODO(iphydf): use nanosleep instead of usleep */
#define _XOPEN_SOURCE 500
#include "audio_device.h"
#ifdef AUDIO

View File

@ -22,7 +22,9 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <limits.h>
#include <sys/param.h>
#ifdef __APPLE__
#include <sys/types.h>

View File

@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "toxic.h"
#include "windows.h"

View File

@ -20,6 +20,7 @@
*
*/
#define _POSIX_C_SOURCE 200809L
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

View File

@ -20,6 +20,7 @@
*
*/
#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <string.h>
#include <assert.h>

View File

@ -24,6 +24,7 @@
#define FILE_TRANSFERS_H
#include <limits.h>
#include <sys/param.h>
#include "toxic.h"
#include "windows.h"

View File

@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "toxic.h"
#include "windows.h"

View File

@ -20,6 +20,7 @@
*
*/
#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>

View File

@ -20,9 +20,12 @@
*
*/
#define _POSIX_C_SOURCE 200809L
#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <limits.h>
#include <dirent.h>

View File

@ -23,6 +23,7 @@
#define MISC_TOOLS_H
#include <sys/stat.h>
#include <sys/types.h>
#include "windows.h"
#include "toxic.h"

View File

@ -23,6 +23,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <curl/curl.h>
#include "toxic.h"

View File

@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <libconfig.h>
#include <ctype.h>

View File

@ -24,6 +24,7 @@
#define SETTINGS_H
#include <limits.h>
#include <sys/param.h>
#include <tox/tox.h>

View File

@ -20,6 +20,7 @@
*
*/
#define _POSIX_C_SOURCE 2
#include <limits.h> /* PATH_MAX */
#include <stdio.h> /* fgets, popen, pclose */
#include <stdlib.h> /* malloc, realloc, free, getenv */

View File

@ -20,6 +20,7 @@
*
*/
#define _XOPEN_SOURCE 500
#include <curses.h>
#include <errno.h>
#include <stdio.h>
@ -30,6 +31,7 @@
#include <signal.h>
#include <locale.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <pthread.h>
#include <getopt.h>

View File

@ -33,6 +33,7 @@
#include <stdbool.h>
#include <curses.h>
#include <string.h>
#include <strings.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>

View File

@ -20,6 +20,7 @@
*
*/
#define _XOPEN_SOURCE 500
#include "video_device.h"
#include "video_call.h"

View File

@ -20,6 +20,7 @@
*
*/
#define _XOPEN_SOURCE 500
#include "xtra.h"
#include "misc_tools.h"