The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / at / 0006-getloadavg.c-fix.patch
1 [PATCH]: fix getloadavg.c compilation, revert to 3.1.10 version
2
3 getloadavg.c shipped with 3.1.13 doesn't compile because it references
4 headers not shipped. Fix it by simply reverting to the 3.1.10 version.
5
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 ---
8  getloadavg.c |    7 ++++---
9  1 file changed, 4 insertions(+), 3 deletions(-)
10
11 Index: at-3.1.13/getloadavg.c
12 ===================================================================
13 --- at-3.1.13.orig/getloadavg.c
14 +++ at-3.1.13/getloadavg.c
15 @@ -66,11 +66,12 @@ Boston, MA  02110-1301  USA */
16  
17  /* This should always be first.  */
18  #ifdef HAVE_CONFIG_H
19 -#include <config.h>
20 +#include "config.h"
21  #endif
22  
23 -#include "lisp.h"
24 -#include "sysfile.h" /* for encapsulated open, close, read, write */
25 +#include <sys/types.h>
26 +#include <sys/stat.h>
27 +#include <fcntl.h>
28  
29  #ifndef HAVE_GETLOADAVG
30