Add patches from BSD (hopefully ok?)

This commit is contained in:
QC 2015-07-04 15:36:11 +02:00
parent dfcfd7b26c
commit d60f6701de
2 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
#include "helper.h"
#include "rofi.h"

View File

@ -36,7 +36,17 @@
#include <X11/X.h>
#include <X11/Xlib.h>
#include <sys/socket.h>
/* Check linux or BSD */
#if defined(__linux__)
#include <linux/un.h>
#else
#if defined(__unix__)
#include <sys/param.h>
#if defined(BSD)
#include <sys/un.h>
#endif
#endif
#endif
#include "rofi.h"
#include "x11-helper.h"