[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 42/46] define ENOTSUP the same that the other errors
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 42/46] define ENOTSUP the same that the other errors |
Date: |
Fri, 24 Jul 2009 20:30:42 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
configure | 5 -----
qemu-common.h | 5 +++--
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/configure b/configure
index e490edc..d84cec9 100755
--- a/configure
+++ b/configure
@@ -265,7 +265,6 @@ oss_lib="-lossaudio"
;;
OpenBSD)
bsd="yes"
-openbsd="yes"
audio_drv_list="oss"
audio_possible_drivers="oss sdl esd"
oss_lib="-lossaudio"
@@ -1544,10 +1543,6 @@ EOF
fi
fi
-if [ "$openbsd" = "yes" ] ; then
- echo "#define ENOTSUP 4096" >> $config_host_h
-fi
-
if test "$darwin" = "yes" ; then
echo "CONFIG_DARWIN=y" >> $config_host_mak
echo "#define CONFIG_DARWIN 1" >> $config_host_h
diff --git a/qemu-common.h b/qemu-common.h
index 3cf7f4e..eb905b7 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -38,6 +38,9 @@
#ifndef ENOMEDIUM
#define ENOMEDIUM ENODEV
#endif
+#ifndef ENOTSUP
+#define ENOTSUP 4096
+#endif
#ifndef CONFIG_IOVEC
#define CONFIG_IOVEC
@@ -52,11 +55,9 @@ struct iovec {
#ifdef _WIN32
#define fsync _commit
#define lseek _lseeki64
-#define ENOTSUP 4096
extern int qemu_ftruncate64(int, int64_t);
#define ftruncate qemu_ftruncate64
-
static inline char *realpath(const char *path, char *resolved_path)
{
_fullpath(resolved_path, path, _MAX_PATH);
--
1.6.2.5
- [Qemu-devel] [PATCH 32/46] instead of setup sdl_x11 just add -lX11 to sdl_libs, (continued)
- [Qemu-devel] [PATCH 32/46] instead of setup sdl_x11 just add -lX11 to sdl_libs, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 34/46] remove sdl_static. Just do the right thing if static is yes, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 33/46] target_softmmu is undefined at that point, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 36/46] Define and use xen libs in a single place, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 35/46] indent with 2 spaces sdl tests, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 37/46] simplify curses library selection, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 38/46] simplify brlapi selection, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 39/46] simplify vde libs selection, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 40/46] simplify fdt libs selection, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 41/46] test if xen is enabled only once, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 42/46] define ENOTSUP the same that the other errors,
Juan Quintela <=
- [Qemu-devel] [PATCH 43/46] rename NEEDS_LIBSUNMATH to CONFIG_NEEDS_LIBSUNMATH, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 44/46] rename USE_NPTL to CONFIG_USE_NPTL, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 46/46] Generate config-host.h from config-host.mak, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 45/46] Remove AUDIO_DRIVERS define, Juan Quintela, 2009/07/24
- Re: [Qemu-devel] [PATCH 45/46] Remove AUDIO_DRIVERS define, Anthony Liguori, 2009/07/26