diff mbox

configure: Fix wrong preprocessor statement

Message ID 1333740800-721-1-git-send-email-sw@weilnetz.de
State Accepted
Headers show

Commit Message

Stefan Weil April 6, 2012, 7:33 p.m. UTC
#abort is not a preprocessor statement. It aborts, but the preprocessor
statement #error is more common to abort a compilation.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Stefan Hajnoczi April 10, 2012, 1:01 p.m. UTC | #1
On Fri, Apr 06, 2012 at 09:33:20PM +0200, Stefan Weil wrote:
> #abort is not a preprocessor statement. It aborts, but the preprocessor
> statement #error is more common to abort a compilation.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan
diff mbox

Patch

diff --git a/configure b/configure
index 4b3adc9..5d5b854 100755
--- a/configure
+++ b/configure
@@ -2616,7 +2616,7 @@  int main(void) {
 #if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0
 return fdatasync(0);
 #else
-#abort Not supported
+#error Not supported
 #endif
 }
 EOF