udev.eclass: add multiple inclusion protection
authorMike Frysinger <vapier@gentoo.org>
Sat, 21 Jan 2017 02:11:15 +0000 (20:11 -0600)
committerMike Frysinger <vapier@gentoo.org>
Sat, 21 Jan 2017 02:11:15 +0000 (20:11 -0600)
eclass/udev.eclass

index eb5c6590e5f637f579d21effff1d132d0fcd1d22..0968559100bffc2780e3019f4888accf3afe3b51 100644 (file)
@@ -28,6 +28,9 @@
 # }
 # @CODE
 
+if [[ -z ${_UDEV_ECLASS} ]]; then
+_UDEV_ECLASS=1
+
 inherit toolchain-funcs
 
 case ${EAPI:-0} in
@@ -113,3 +116,5 @@ udev_reload() {
                eend $?
        fi
 }
+
+fi