X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev%2Fudev_sysdeps.c;h=cd7d148398813256c1a8ae4e77e76e4390830737;hp=9447cca9369054dd1fb53b1235e0114f91792f83;hb=44aff4cd6d74d230e4a97f8d59f780472b7cad6e;hpb=726687ad48bdececed1e7e44387c50e009e28208 diff --git a/udev/udev_sysdeps.c b/udev/udev_sysdeps.c index 9447cca93..cd7d14839 100644 --- a/udev/udev_sysdeps.c +++ b/udev/udev_sysdeps.c @@ -1,6 +1,5 @@ /* - * Copyright (C) 2003 Greg Kroah-Hartman - * Copyright (C) 2005-2006 Kay Sievers + * Copyright (C) 2005-2008 Kay Sievers * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -20,14 +19,11 @@ #include #include #include -#include -#include -#include #include -#include "udev.h" +#include "udev_sysdeps.h" -#ifdef __GLIBC__ +#ifndef HAVE_STRLCPY size_t strlcpy(char *dst, const char *src, size_t size) { size_t bytes = 0; @@ -70,4 +66,4 @@ size_t strlcat(char *dst, const char *src, size_t size) *q = '\0'; return bytes; } -#endif /* __GLIBC__ */ +#endif /* HAVE_STRLCPY */