libvirt/examples/c
Michal Privoznik 9ef6541cec examples: Define _GNU_SOURCE for more examples
Some of our examples use GNU/Linux extensions functions/variables:

1) domtop.c uses usleep(3),
2) logging.c uses getopt(3).

Put _GNU_SOURCE definition at the top of corresponding files so
that users can just grab the code and compile it (in contrast
with the rest of the code where _GNU_SOURCE is declared in
meson-config.h).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2024-02-07 18:01:03 +01:00
..
admin examples: Define _GNU_SOURCE for more examples 2024-02-07 18:01:03 +01:00
domain examples: Define _GNU_SOURCE for more examples 2024-02-07 18:01:03 +01:00
misc examples: Fix printf format string in event-test.c 2023-10-20 10:22:34 +02:00
meson.build meson: examples: build and install example files 2020-08-03 09:27:06 +02:00