diff options
Diffstat (limited to 'get_load.c')
-rw-r--r-- | get_load.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -365,21 +365,21 @@ void GetLoadPoint( /* * provide default for everyone else */ -/* If a BSD system, check in <paths.h> */ -# ifdef BSD -# include <paths.h> -# ifdef _PATH_UNIX -# define KERNEL_FILE _PATH_UNIX -# else -# ifdef _PATH_KERNEL -# define KERNEL_FILE _PATH_KERNEL -# else -# define KERNEL_FILE "/vmunix" -# endif -# endif -# else /* BSD */ -# define KERNEL_FILE "/vmunix" -# endif /* BSD */ +/* If <paths.h> exists, check in it */ +# ifdef HAVE_PATHS_H +# include <paths.h> +# ifdef _PATH_UNIX +# define KERNEL_FILE _PATH_UNIX +# else +# ifdef _PATH_KERNEL +# define KERNEL_FILE _PATH_KERNEL +# else +# define KERNEL_FILE "/vmunix" +# endif +# endif +# else /* HAVE_PATHS_H */ +# define KERNEL_FILE "/vmunix" +# endif /* HAVE_PATHS_H */ # endif /* KERNEL_FILE */ |