diff options
author | johalun <johalun0@gmail.com> | 2017-06-05 13:44:29 +0200 |
---|---|---|
committer | johalun <johalun0@gmail.com> | 2017-06-06 09:45:50 +0200 |
commit | 7fef2830446e1f98a02f8d8a3bba866b7edd5bd0 (patch) | |
tree | 10c1529eb56235b303bdbca905e8b80dce47ae6d /sway/input.c | |
parent | Revert "Drop epoll dependency" (diff) | |
download | sway-7fef2830446e1f98a02f8d8a3bba866b7edd5bd0.tar.gz sway-7fef2830446e1f98a02f8d8a3bba866b7edd5bd0.tar.zst sway-7fef2830446e1f98a02f8d8a3bba866b7edd5bd0.zip |
FreeBSD fixes
Increase _POSIX_SOURCE value where needed.
Increase _XOPEN_SOURCE value where needed.
Conditionally link to libcap (only on Linux).
Possibly some trailing whitespace fixes (automatic).
Diffstat (limited to 'sway/input.c')
-rw-r--r-- | sway/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input.c b/sway/input.c index 4f1ef760..6263f79f 100644 --- a/sway/input.c +++ b/sway/input.c | |||
@@ -1,4 +1,4 @@ | |||
1 | #define _XOPEN_SOURCE 500 | 1 | #define _XOPEN_SOURCE 700 |
2 | #include <ctype.h> | 2 | #include <ctype.h> |
3 | #include <float.h> | 3 | #include <float.h> |
4 | #include <limits.h> | 4 | #include <limits.h> |
@@ -60,7 +60,7 @@ char *libinput_dev_unique_id(struct libinput_device *device) { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | const char *fmt = "%d:%d:%s"; | 62 | const char *fmt = "%d:%d:%s"; |
63 | snprintf(identifier, len, fmt, vendor, product, name); | 63 | snprintf(identifier, len, fmt, vendor, product, name); |
64 | free(name); | 64 | free(name); |
65 | return identifier; | 65 | return identifier; |
66 | } | 66 | } |