Speculative fix for PATH_MAX not known

The latest poky master build is failing with the error below. Let's
include limits.h and see if this is already fixing it.

| rtl8168-eeprom.c: In function 'eeprom_backup':
| rtl8168-eeprom.c:406:13: error: 'PATH_MAX' undeclared (first use in this function)
|   char fname[PATH_MAX];
|              ^~~~~~~~
This commit is contained in:
Holger Hans Peter Freyther 2017-06-13 12:52:35 +08:00
parent 47e0b24d7a
commit 2052514dc9
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <limits.h>
#include <pci/pci.h>
#include <sys/fcntl.h>