vnstat: add upstream patch to fix build with musl
authorRodrigo Rebello <rprebello@gmail.com>
Tue, 1 Dec 2015 21:54:11 +0000 (19:54 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 17 Dec 2015 21:10:29 +0000 (22:10 +0100)
commit288f7541196d31bd43e6450ccad4ed0fa6ed6c08
tree1bfc08300167279c333f6d7b0fa1eb0335699c9e
parent7fe163368e33873035a7ff3b66e15f3240155eee
vnstat: add upstream patch to fix build with musl

The header file 'fcntl.h' was missing from 'src/common.h', which caused
the build with musl to fail with undeclared symbol errors like the
following:

  dbaccess.c: In function ‘backupdb’:
  dbaccess.c:268:25: error: ‘O_RDONLY’ undeclared (first use in this function)
    if ((c = open(current, O_RDONLY)) == -1) {
                           ^
This has already been fixed upstream, so the included patch must be
dropped on the next version bump.

Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/vnstat/0001-add-missing-fcntl.h-include-needed-by-open-closes-21.patch [new file with mode: 0644]