Skip to content

Commit 8f5f64e

Browse files
fix: add _DEFAULT_SOURCE to expose usleep() under -std=c11
1 parent 265bee5 commit 8f5f64e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • examples/families_usage/controller_discovery

examples/families_usage/controller_discovery/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* > servo set_pos 0 90
2323
*/
2424

25+
#define _DEFAULT_SOURCE /* expose usleep() under -std=c11 */
26+
2527
#include <ctype.h>
2628
#include <stdio.h>
2729
#include <stdlib.h>

0 commit comments

Comments
 (0)