0003-getloadavg.c-fix.patch 848 B

123456789101112131415161718192021222324252627282930
  1. [PATCH]: fix getloadavg.c compilation, revert to 3.1.10 version
  2. getloadavg.c shipped with 3.1.13 doesn't compile because it references
  3. headers not shipped. Fix it by simply reverting to the 3.1.10 version.
  4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  5. ---
  6. getloadavg.c | 7 ++++---
  7. 1 file changed, 4 insertions(+), 3 deletions(-)
  8. Index: at-3.1.13/getloadavg.c
  9. ===================================================================
  10. --- at-3.1.13.orig/getloadavg.c
  11. +++ at-3.1.13/getloadavg.c
  12. @@ -66,11 +66,12 @@ Boston, MA 02110-1301 USA */
  13. /* This should always be first. */
  14. #ifdef HAVE_CONFIG_H
  15. -#include <config.h>
  16. +#include "config.h"
  17. #endif
  18. -#include "lisp.h"
  19. -#include "sysfile.h" /* for encapsulated open, close, read, write */
  20. +#include <sys/types.h>
  21. +#include <sys/stat.h>
  22. +#include <fcntl.h>
  23. #ifndef HAVE_GETLOADAVG