libvirt/examples/c/admin
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
..
client_close.c examples: Group all C programs together 2019-06-03 17:27:43 +02:00
client_info.c examples: Group all C programs together 2019-06-03 17:27:43 +02:00
client_limits.c examples: Group all C programs together 2019-06-03 17:27:43 +02:00
list_clients.c Fix couple of comment typos 2022-11-30 12:18:11 +01:00
list_servers.c examples: fix misc spelling errors reported by codespell 2020-10-05 10:28:46 +01:00
logging.c examples: Define _GNU_SOURCE for more examples 2024-02-07 18:01:03 +01:00
meson.build admin: Build only when RPC is available 2021-12-15 12:12:44 +01:00
threadpool_params.c examples: Group all C programs together 2019-06-03 17:27:43 +02:00