Fix compilation error on OS X (#730)

This commit is contained in:
Jean-Michel Picod 2018-12-04 08:12:05 +01:00 committed by pwpiwi
commit a015ef3733

View file

@ -55,6 +55,12 @@
#include <arpa/inet.h>
#include <netdb.h>
// Fix missing definition on OS X.
// Taken from https://github.com/unbit/uwsgi/commit/b608eb1772641d525bfde268fe9d6d8d0d5efde7
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif
typedef struct termios term_info;
typedef struct {
int fd; // Serial port file descriptor