projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d664113
)
Fix compilation error on OS X (#730)
author
Jean-Michel Picod
<github@ichizoku.org>
Tue, 4 Dec 2018 07:12:05 +0000
(08:12 +0100)
committer
pwpiwi
<pwpiwi@users.noreply.github.com>
Tue, 4 Dec 2018 07:12:05 +0000
(08:12 +0100)
uart/uart_posix.c
patch
|
blob
|
blame
|
history
diff --git
a/uart/uart_posix.c
b/uart/uart_posix.c
index e3113e86165276de6ce9aa408bc87573b0bf8d4f..1db375b2ffa0f7d42f2f30e98a7a81cd0e94417d 100644
(file)
--- a/
uart/uart_posix.c
+++ b/
uart/uart_posix.c
@@
-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
Impressum
,
Datenschutz