Skip to content

Commit

Permalink
Include config.h first.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Jan 7, 1995
1 parent d35e912 commit 2ee0880
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/getloadavg.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 <config.h>
#endif

#include <sys/types.h>

/* Both the Emacs and non-Emacs sections want this. Some
Expand All @@ -69,10 +74,6 @@
#endif


#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* Exclude all the code except the test program at the end
if the system has its own `getloadavg' function.
Expand Down

0 comments on commit 2ee0880

Please sign in to comment.