The Samba-Bugzilla – Attachment 8413 Details for
Bug 9548
O_DIRECT detection is broken in configure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.6
9548-3.6.patch (text/plain), 1.80 KB, created by
Volker Lendecke
on 2013-01-12 17:44:29 UTC
(
hide
)
Description:
Patch for 3.6
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2013-01-12 17:44:29 UTC
Size:
1.80 KB
patch
obsolete
>From 9101f2cbe42e90578c104d259b9b43541b2720f1 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sat, 12 Jan 2013 16:08:07 +0100 >Subject: [PATCH] Fix bug 9548: Correctly detect O_DIRECT > >--- > lib/replace/libreplace.m4 | 21 ++++++++++----------- > 1 Datei geändert, 10 Zeilen hinzugefügt(+), 11 Zeilen entfernt(-) > >diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4 >index 808d5d1..87e8fdb 100644 >--- a/lib/replace/libreplace.m4 >+++ b/lib/replace/libreplace.m4 >@@ -266,6 +266,16 @@ if test x"$libreplace_cv_sig_atomic_t" = x"yes"; then > fi > > >+dnl Check if the C compiler understands volatile (it should, being ANSI). >+AC_CACHE_CHECK([that the C compiler understands volatile],libreplace_cv_volatile, [ >+ AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0], >+ libreplace_cv_volatile=yes,libreplace_cv_volatile=no)]) >+if test x"$libreplace_cv_volatile" = x"yes"; then >+ AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile]) >+fi >+ >+m4_include(system/config.m4) >+ > AC_CACHE_CHECK([for O_DIRECT flag to open(2)],libreplace_cv_HAVE_OPEN_O_DIRECT,[ > AC_TRY_COMPILE([ > #include <unistd.h> >@@ -278,17 +288,6 @@ if test x"$libreplace_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then > AC_DEFINE(HAVE_OPEN_O_DIRECT,1,[Whether the open(2) accepts O_DIRECT]) > fi > >- >-dnl Check if the C compiler understands volatile (it should, being ANSI). >-AC_CACHE_CHECK([that the C compiler understands volatile],libreplace_cv_volatile, [ >- AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0], >- libreplace_cv_volatile=yes,libreplace_cv_volatile=no)]) >-if test x"$libreplace_cv_volatile" = x"yes"; then >- AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile]) >-fi >- >-m4_include(system/config.m4) >- > m4_include(dlfcn.m4) > m4_include(getpass.m4) > m4_include(strptime.m4) >-- >1.7.11.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 9548
: 8413 |
8414