aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-03-20 08:31:26 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-03-20 08:31:26 -0700
commit5120c32acb51c62c5ee4562899dadec9c80e82d9 (patch)
treee84a3d5051d7f5824871c81254c8eff1da2958df /com32/libutil/include
parent9ffb8445bb0931fa574a37a4059a2085b3f0b09f (diff)
downloadsyslinux-5120c32acb51c62c5ee4562899dadec9c80e82d9.tar.gz
syslinux-5120c32acb51c62c5ee4562899dadec9c80e82d9.tar.xz
syslinux-5120c32acb51c62c5ee4562899dadec9c80e82d9.zip
Move <syslinux.h> to <syslinux/idle.h>; clean up libutil do_idle()
Move <syslinux.h> to <syslinux/idle.h> since that was all that was there; do_idle() in libutil can simply be a macro for syslinux_idle() or sched_yield() as appropriate.
Diffstat (limited to 'com32/libutil/include')
-rw-r--r--com32/libutil/include/libutil.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/com32/libutil/include/libutil.h b/com32/libutil/include/libutil.h
index 3b6278f9..5fab0af5 100644
--- a/com32/libutil/include/libutil.h
+++ b/com32/libutil/include/libutil.h
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- *
*
- * Copyright 2005 H. Peter Anvin - All Rights Reserved
+ * Copyright 2005-2007 H. Peter Anvin - All Rights Reserved
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
@@ -34,6 +34,18 @@
#ifndef LIBUTIL_LIBUTIL_H
#define LIBUTIL_LIBUTIL_H
-void do_idle(void);
+#ifdef __COM32__
+
+# include <syslinux/idle.h>
+
+# define do_idle syslinux_idle
+
+#else /* not __COM32__ */
+
+# include <sched.h>
+
+# define do_idle sched_yield
+
+#endif
#endif