Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ca8a0860
Commit
ca8a0860
authored
Apr 18, 2016
by
Seong-ho Cho
Committed by
Alexandre Julliard
Apr 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add AC_HEADER_MAJOR to find where major() is defined.
Signed-off-by:
Seong-ho Cho
<
darkcircle.0426@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dddfd469
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
79 additions
and
0 deletions
+79
-0
configure
configure
+50
-0
configure.ac
configure.ac
+1
-0
cdrom.c
dlls/ntdll/cdrom.c
+5
-0
directory.c
dlls/ntdll/directory.c
+5
-0
file.c
dlls/ntdll/file.c
+5
-0
config.h.in
include/config.h.in
+8
-0
fd.c
server/fd.c
+5
-0
No files found.
configure
View file @
ca8a0860
...
...
@@ -6836,6 +6836,56 @@ fi
done
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether sys/types.h defines makedev"
>
&5
$as_echo_n
"checking whether sys/types.h defines makedev... "
>
&6
;
}
if
${
ac_cv_header_sys_types_h_makedev
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
int
main ()
{
return makedev(0, 0);
;
return 0;
}
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_header_sys_types_h_makedev
=
yes
else
ac_cv_header_sys_types_h_makedev
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_header_sys_types_h_makedev
"
>
&5
$as_echo
"
$ac_cv_header_sys_types_h_makedev
"
>
&6
;
}
if
test
$ac_cv_header_sys_types_h_makedev
=
no
;
then
ac_fn_c_check_header_mongrel
"
$LINENO
"
"sys/mkdev.h"
"ac_cv_header_sys_mkdev_h"
"
$ac_includes_default
"
if
test
"x
$ac_cv_header_sys_mkdev_h
"
=
xyes
;
then
:
$as_echo
"#define MAJOR_IN_MKDEV 1"
>>
confdefs.h
fi
if
test
$ac_cv_header_sys_mkdev_h
=
no
;
then
ac_fn_c_check_header_mongrel
"
$LINENO
"
"sys/sysmacros.h"
"ac_cv_header_sys_sysmacros_h"
"
$ac_includes_default
"
if
test
"x
$ac_cv_header_sys_sysmacros_h
"
=
xyes
;
then
:
$as_echo
"#define MAJOR_IN_SYSMACROS 1"
>>
confdefs.h
fi
fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether stat file-mode macros are broken"
>
&5
$as_echo_n
"checking whether stat file-mode macros are broken... "
>
&6
;
}
if
${
ac_cv_header_stat_broken
+
:
}
false
;
then
:
...
...
configure.ac
View file @
ca8a0860
...
...
@@ -512,6 +512,7 @@ AC_CHECK_HEADERS(\
valgrind/valgrind.h \
zlib.h
)
AC_HEADER_MAJOR()
AC_HEADER_STAT()
dnl **** Checks for headers that depend on other ones ****
...
...
dlls/ntdll/cdrom.c
View file @
ca8a0860
...
...
@@ -38,6 +38,11 @@
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif defined(MAJOR_IN_SYSMACROS)
# include <sys/sysmacros.h>
#endif
#include <sys/types.h>
#ifdef HAVE_SYS_IOCTL_H
...
...
dlls/ntdll/directory.c
View file @
ca8a0860
...
...
@@ -47,6 +47,11 @@
#ifdef HAVE_SYS_ATTR_H
#include <sys/attr.h>
#endif
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif defined(MAJOR_IN_SYSMACROS)
# include <sys/sysmacros.h>
#endif
#ifdef HAVE_SYS_VNODE_H
/* Work around a conflict with Solaris' system list defined in sys/list.h. */
#define list SYSLIST
...
...
dlls/ntdll/file.c
View file @
ca8a0860
...
...
@@ -57,6 +57,11 @@
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif defined(MAJOR_IN_SYSMACROS)
# include <sys/sysmacros.h>
#endif
#ifdef HAVE_UTIME_H
# include <utime.h>
#endif
...
...
include/config.h.in
View file @
ca8a0860
...
...
@@ -1335,6 +1335,14 @@
/* Define to 1 if you have the `__res_get_state' function. */
#undef HAVE___RES_GET_STATE
/* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
*/
#undef MAJOR_IN_MKDEV
/* Define to 1 if `major', `minor', and `makedev' are declared in
<sysmacros.h>. */
#undef MAJOR_IN_SYSMACROS
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
...
...
server/fd.c
View file @
ca8a0860
...
...
@@ -83,6 +83,11 @@
#endif
#include <sys/stat.h>
#include <sys/time.h>
#ifdef MAJOR_IN_MKDEV
#include <sys/mkdev.h>
#elif defined(MAJOR_IN_SYSMACROS)
#include <sys/sysmacros.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_SYS_SYSCALL_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment