| index a6921ba..f006912 100644 | | index a6921ba..f006912 100644 |
| --- a/src/plugin_services.c | | --- a/src/plugin_services.c |
| +++ b/src/plugin_services.c | | +++ b/src/plugin_services.c |
| @@ -670,11 +670,9 @@ static void apply_show(const char *text) | | @@ -670,11 +670,9 @@ static void apply_show(const char *text) |
| 670 | } | 670 | } |
| 671 | | 671 | |
| 672 | /* Containers with no init system: list /proc/<pid> long-running daemons. */ | 672 | /* Containers with no init system: list /proc/<pid> long-running daemons. */ |
| | 673 | +#if !defined(_WIN32) |
| 673 | static int collect_proc_daemons(void) | 674 | static int collect_proc_daemons(void) |
| 674 | { | 675 | { |
| 675 | -#if defined(_WIN32) | | |
| 676 | - return 0; | | |
| 677 | -#else | | |
| 678 | const char *root = getenv("SERVICES_MOCK_PROC_DIR"); | 676 | const char *root = getenv("SERVICES_MOCK_PROC_DIR"); |
| 679 | DIR *d; | 677 | DIR *d; |
| 680 | struct dirent *de; | 678 | struct dirent *de; |
| @@ -762,8 +760,8 @@ static int collect_proc_daemons(void) | | @@ -762,8 +760,8 @@ static int collect_proc_daemons(void) |
| 762 | } | 760 | } |
| 763 | closedir(d); | 761 | closedir(d); |
| 764 | return g_count; | 762 | return g_count; |
| 765 | -#endif | | |
| 766 | } | 763 | } |
| | 764 | +#endif /* !_WIN32 */ |
| 767 | | 765 | |
| 768 | static void collect_systemd(void) | 766 | static void collect_systemd(void) |
| 769 | { | 767 | { |
| 770 | | 768 | |