Patchwork [2/6] configure: Fix wrong preprocessor statement

login
register
mail settings
Submitter Stefan Hajnoczi
Date April 13, 2012, 9:39 a.m.
Message ID <1334309956-31827-3-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/152274/
State New
Headers show

Comments

Stefan Hajnoczi - April 13, 2012, 9:39 a.m.
From: Stefan Weil <sw@weilnetz.de>

#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>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/configure b/configure
index 5aaafa1..b392c6f 100755
--- a/configure
+++ b/configure
@@ -2624,7 +2624,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