core: add missing include
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 7 Nov 2018 15:55:52 +0000 (16:55 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 7 Nov 2018 15:55:52 +0000 (16:55 +0100)
commitc990e2168c24dffe0a34e72c5603cb2612a3ce7e
tree9148fac8fb40b31cf3044d9889eeb21cb98ed054
parentd9b1c1f14c6bebab3c931086bbbdd31c2a8a3f67
core: add missing include

Not including <sys/sysmacros.h> causes the following error on ARM:

core.c: In function ‘is_gpiochip_cdev’:
core.c:116:4: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration]
    major(statbuf.st_rdev), minor(statbuf.st_rdev));
    ^~~~~
core.c:116:28: warning: implicit declaration of function ‘minor’; did you mean ‘mknod’? [-Wimplicit-function-declaration]
    major(statbuf.st_rdev), minor(statbuf.st_rdev));
                            ^~~~~
                            mknod

It wasn't spotted earlier since it builds fine on x86-64. Add the
missing include.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c