mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Fix build on Alpine Linux
Issue #144 Add `#define _POSIX_C_SOURCE 200809L` to avoid the error below: ../src/cursor.c: In function 'cursor_update_focus': ../src/cursor.c:271:2: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration] 271 | clock_gettime(CLOCK_MONOTONIC, &now); | ^~~~~~~~~~~~~ ../src/cursor.c:271:16: error: 'CLOCK_MONOTONIC' undeclared (first use in this function) 271 | clock_gettime(CLOCK_MONOTONIC, &now); | ^~~~~~~~~~~~~~~ ../src/cursor.c:271:16: note: each undeclared identifier is reported only once for each function it appears in ../src/cursor.c: In function 'is_double_click': ../src/cursor.c:486:16: error: 'CLOCK_MONOTONIC' undeclared (first use in this function) 486 | clock_gettime(CLOCK_MONOTONIC, &now); | ^~~~~~~~~~~~~~~
This commit is contained in:
parent
09949e6faf
commit
310c36c86d
1 changed files with 1 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <assert.h>
|
||||
#include <linux/input-event-codes.h>
|
||||
#include <sys/time.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue