libvirt/examples/c/domain
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
..
dommigrate.c lib: Drop needless one line labels 2021-11-22 12:39:59 +01:00
domtop.c examples: Define _GNU_SOURCE for more examples 2024-02-07 18:01:03 +01:00
info1.c examples: fix misc spelling errors reported by codespell 2020-10-05 10:28:46 +01:00
meson.build meson: examples: build and install example files 2020-08-03 09:27:06 +02:00
rename.c examples: Group all C programs together 2019-06-03 17:27:43 +02:00
suspend.c lib: Use the same style in the 'struct option' 2022-11-22 10:15:11 +01:00