# HG changeset patch # User Roland McGrath # Date 789497856 0 # Node ID f9f787d5e5ff595bd0498d7521976fdc688c68e5 # Parent f145d62266f6a421f344ec647b77bc29a42407e8 Include config.h first. diff -r f145d62266f6 -r f9f787d5e5ff src/getloadavg.c --- a/src/getloadavg.c Sat Jan 07 00:23:16 1995 +0000 +++ b/src/getloadavg.c Sat Jan 07 16:57:36 1995 +0000 @@ -1,5 +1,5 @@ /* Get the system load averages. - Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994 + Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -59,6 +59,11 @@ We also #define LDAV_PRIVILEGED if a program will require special installation to be able to call getloadavg. */ +/* This should always be first. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include /* Both the Emacs and non-Emacs sections want this. Some @@ -69,10 +74,6 @@ #endif -#ifdef HAVE_CONFIG_H -#include -#endif - /* Exclude all the code except the test program at the end if the system has its own `getloadavg' function.