eudev: fix redefinition of usec_t and nsec_t.
authorEric Le Bihan <eric.le.bihan.dev@free.fr>
Wed, 2 Apr 2014 14:42:25 +0000 (16:42 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 3 Apr 2014 19:33:02 +0000 (21:33 +0200)
commitbd573ccfbd301b58529b3ce1f8c99940eeb45a1f
tree21d02c591222b3d772792d31139d0261388b5ece
parentdd7bfc0ca865218c22a358dfab126f5e59b9ccb5
eudev: fix redefinition of usec_t and nsec_t.

usec_t and nsec_t are defined twice (src/libudev/{util.h,path-util.h}).
This raises an error when using GCC 4.5, but not with later versions!
This patch fixes the issue by gathering the time-related functions and
definitions to time-util.[ch], as in upstream systemd.

This patch has been sent to upstream.

Fixes http://autobuild.buildroot.net/results/060/0605f279abfdfc837f6973f2898ed7ee39f2b8d1/

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/eudev/eudev-0002-libudev-Fix-redefinition-of-usec_t-and-nsec_t.patch [new file with mode: 0644]