Skip to content

Commit

Permalink
wakeup.h: include limits.h
Browse files Browse the repository at this point in the history
limits.h must be included to define PATH_MAX otherwise
build will fail on:

In file included from wakeup/wakeup_ethernet.cpp:45:0:
wakeup/wakeup_ethernet.h:35:16: error: 'PATH_MAX' was not declared in this scope
  char eth_path[PATH_MAX];

In file included from wakeup/wakeup_usb.cpp:45:0:
wakeup/wakeup_usb.h:35:16: error: 'PATH_MAX' was not declared in this scope
  char usb_path[PATH_MAX];

Fixes:
 - http://autobuild.buildroot.org/results/a0b3337cf4a827e6566f8b15b6bb180f0dcef7a3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Nivedita Swaminathan <nivedita.swaminathan@intel.com>
  • Loading branch information
nswamina committed Sep 26, 2019
1 parent 6f78dc8 commit ac57603
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wakeup/wakeup.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define _INCLUDE_GUARD_WAKEUP_H

#include<vector>
#include <limits.h>

using namespace std;

Expand Down

0 comments on commit ac57603

Please sign in to comment.