提交 c12f6879 编写于 作者: C Cole Robinson

node_device_udev.h: Use #pragma once

Acked-by: NEric Blake <eblake@redhat.com>
Signed-off-by: NCole Robinson <crobinso@redhat.com>
上级 23bda3b7
...@@ -18,13 +18,10 @@ ...@@ -18,13 +18,10 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_NODE_DEVICE_UDEV_H #pragma once
# define LIBVIRT_NODE_DEVICE_UDEV_H
# include <libudev.h> #include <libudev.h>
# define SYSFS_DATA_SIZE 4096 #define SYSFS_DATA_SIZE 4096
# define DMI_DEVPATH "/sys/devices/virtual/dmi/id" #define DMI_DEVPATH "/sys/devices/virtual/dmi/id"
# define DMI_DEVPATH_FALLBACK "/sys/class/dmi/id" #define DMI_DEVPATH_FALLBACK "/sys/class/dmi/id"
#endif /* LIBVIRT_NODE_DEVICE_UDEV_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册