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
49b7fdcf
Commit
49b7fdcf
authored
Aug 03, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the broken mmap64 configure check, and moved the
_FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that need the define include it.
parent
6b91f5b3
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
38 additions
and
130 deletions
+38
-130
configure
configure
+0
-78
configure.ac
configure.ac
+0
-39
crypt.c
dlls/advapi32/crypt.c
+1
-0
avicap32_main.c
dlls/avicap32/avicap32_main.c
+4
-1
surface.c
dlls/d3d8/surface.c
+1
-0
elf_module.c
dlls/dbghelp/elf_module.c
+1
-0
surface_dib.c
dlls/ddraw/surface_dib.c
+1
-0
surface_main.c
dlls/ddraw/surface_main.c
+1
-0
texture.c
dlls/ddraw/texture.c
+1
-0
ipstats.c
dlls/iphlpapi/ipstats.c
+1
-0
path.c
dlls/ntdll/path.c
+1
-0
v4l.c
dlls/qcap/v4l.c
+1
-0
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+2
-0
aspi.c
dlls/winaspi/aspi.c
+1
-0
winaspi16.c
dlls/winaspi/winaspi16.c
+1
-0
ppdev.c
dlls/winedos/ppdev.c
+1
-0
ppd.c
dlls/wineps/ppd.c
+1
-0
type1afm.c
dlls/wineps/type1afm.c
+1
-0
joystick.c
dlls/winmm/joystick/joystick.c
+1
-0
midi.c
dlls/winmm/wineoss/midi.c
+1
-0
mixer.c
dlls/winmm/wineoss/mixer.c
+1
-0
mmaux.c
dlls/winmm/wineoss/mmaux.c
+1
-0
config.h.in
include/config.h.in
+0
-3
port.h
include/wine/port.h
+1
-0
drivedetect.c
programs/winecfg/drivedetect.c
+1
-0
fd.c
server/fd.c
+1
-0
fnt2bdf.c
tools/fnt2bdf.c
+1
-4
fnt2fon.c
tools/fnt2fon.c
+1
-0
sfnt2fnt.c
tools/sfnt2fnt.c
+1
-0
proxy.c
tools/widl/proxy.c
+1
-0
widl.c
tools/widl/widl.c
+1
-0
dump.c
tools/winedump/dump.c
+0
-4
main.c
tools/winedump/main.c
+1
-0
wmc.c
tools/wmc/wmc.c
+1
-1
write.c
tools/wmc/write.c
+3
-0
parser.y
tools/wrc/parser.y
+1
-0
No files found.
configure
View file @
49b7fdcf
...
@@ -11160,84 +11160,6 @@ fi
...
@@ -11160,84 +11160,6 @@ fi
fi
fi
echo
"
$as_me
:
$LINENO
: checking whether mmap64 works defined as mmap"
>
&5
echo
$ECHO_N
"checking whether mmap64 works defined as mmap...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_mmap64_works
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
"
$cross_compiling
"
=
yes
;
then
ac_cv_mmap64_works
=
"no"
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#define _FILE_OFFSET_BITS 64
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
int main(int argc,char **argv) {
int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
if (fd == -1) exit(1);
unlink("conftest.map");
write(fd,"test",4);
if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
(errno == EINVAL)
) {
exit(1);
}
close(fd);
fprintf(stderr,"success!\n");
exit(0);
}
_ACEOF
rm
-f
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'./conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_mmap64_works
=
"yes"
else
echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
(
exit
$ac_status
)
ac_cv_mmap64_works
=
"no"
fi
rm
-f
core
*
.core gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
fi
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_mmap64_works
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_mmap64_works
"
>
&6
if
test
"
$ac_cv_mmap64_works
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define _FILE_OFFSET_BITS 64
_ACEOF
fi
EXTRACFLAGS
=
""
EXTRACFLAGS
=
""
if
test
"x
${
GCC
}
"
=
"xyes"
if
test
"x
${
GCC
}
"
=
"xyes"
...
...
configure.ac
View file @
49b7fdcf
...
@@ -790,45 +790,6 @@ then
...
@@ -790,45 +790,6 @@ then
AC_CHECK_LIB(capi20,capi20_register,[AC_DEFINE(HAVE_CAPI4LINUX,1,[Define if you have capi4linux libs and headers])])
AC_CHECK_LIB(capi20,capi20_register,[AC_DEFINE(HAVE_CAPI4LINUX,1,[Define if you have capi4linux libs and headers])])
fi
fi
dnl **** Check for broken glibc mmap64 ****
AC_CACHE_CHECK( [whether mmap64 works defined as mmap], ac_cv_mmap64_works,
AC_TRY_RUN([
#define _FILE_OFFSET_BITS 64
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
int main(int argc,char **argv) {
int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
if (fd == -1) exit(1);
unlink("conftest.map");
write(fd,"test",4);
if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
(errno == EINVAL)
) {
exit(1);
}
close(fd);
fprintf(stderr,"success!\n");
exit(0);
}
],
ac_cv_mmap64_works="yes",
ac_cv_mmap64_works="no",
ac_cv_mmap64_works="no") )
if test "$ac_cv_mmap64_works" = "yes"
then
AC_DEFINE(_FILE_OFFSET_BITS, 64, [Set this to 64 to enable 64-bit file support on Linux])
fi
dnl **** Check for gcc specific options ****
dnl **** Check for gcc specific options ****
AC_SUBST(EXTRACFLAGS,"")
AC_SUBST(EXTRACFLAGS,"")
...
...
dlls/advapi32/crypt.c
View file @
49b7fdcf
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <time.h>
#include <time.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
dlls/avicap32/avicap32_main.c
View file @
49b7fdcf
...
@@ -17,8 +17,11 @@
...
@@ -17,8 +17,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
#define COM_NO_WINDOWS_H
#include "config.h"
#include "config.h"
#include "wine/port.h"
#define COM_NO_WINDOWS_H
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
dlls/d3d8/surface.c
View file @
49b7fdcf
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
...
...
dlls/dbghelp/elf_module.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
...
...
dlls/ddraw/surface_dib.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
dlls/ddraw/surface_main.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
...
...
dlls/ddraw/texture.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <string.h>
#include <string.h>
...
...
dlls/iphlpapi/ipstats.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
...
...
dlls/ntdll/path.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/types.h>
...
...
dlls/qcap/v4l.c
View file @
49b7fdcf
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#define NONAMELESSSTRUCT
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#define NONAMELESSUNION
...
...
dlls/shell32/shfldr_unixfs.c
View file @
49b7fdcf
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdarg.h>
#include <limits.h>
#include <limits.h>
...
...
dlls/winaspi/aspi.c
View file @
49b7fdcf
...
@@ -38,6 +38,7 @@ HKEY_DYN_DATA
...
@@ -38,6 +38,7 @@ HKEY_DYN_DATA
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdarg.h>
...
...
dlls/winaspi/winaspi16.c
View file @
49b7fdcf
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdlib.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/types.h>
...
...
dlls/winedos/ppdev.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include "windef.h"
#include "windef.h"
...
...
dlls/wineps/ppd.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include <string.h>
#include <stdarg.h>
#include <stdarg.h>
...
...
dlls/wineps/type1afm.c
View file @
49b7fdcf
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
dlls/winmm/joystick/joystick.c
View file @
49b7fdcf
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <unistd.h>
...
...
dlls/winmm/wineoss/midi.c
View file @
49b7fdcf
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include <string.h>
#include <stdarg.h>
#include <stdarg.h>
...
...
dlls/winmm/wineoss/mixer.c
View file @
49b7fdcf
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdlib.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdarg.h>
...
...
dlls/winmm/wineoss/mmaux.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
include/config.h.in
View file @
49b7fdcf
...
@@ -977,9 +977,6 @@
...
@@ -977,9 +977,6 @@
`char[]'. */
`char[]'. */
#undef YYTEXT_POINTER
#undef YYTEXT_POINTER
/* Set this to 64 to enable 64-bit file support on Linux */
#undef _FILE_OFFSET_BITS
/* Define to a macro to generate an assembly function directive */
/* Define to a macro to generate an assembly function directive */
#undef __ASM_FUNC
#undef __ASM_FUNC
...
...
include/wine/port.h
View file @
49b7fdcf
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
# error You must include config.h to use this header
# error You must include config.h to use this header
#endif
#endif
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE
/* for pread/pwrite */
#define _GNU_SOURCE
/* for pread/pwrite */
#include <fcntl.h>
#include <fcntl.h>
#include <math.h>
#include <math.h>
...
...
programs/winecfg/drivedetect.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <wine/debug.h>
#include <wine/debug.h>
#include <wine/library.h>
#include <wine/library.h>
...
...
server/fd.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <assert.h>
#include <errno.h>
#include <errno.h>
...
...
tools/fnt2bdf.c
View file @
49b7fdcf
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#ifdef HAVE_SYS_PARAM_H
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
# include <sys/param.h>
...
@@ -38,10 +39,6 @@
...
@@ -38,10 +39,6 @@
# include <io.h>
# include <io.h>
#endif
#endif
#ifndef O_BINARY
# define O_BINARY 0
#endif
#include "fnt2bdf.h"
#include "fnt2bdf.h"
#define FILE_ERROR 0
#define FILE_ERROR 0
...
...
tools/fnt2fon.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
tools/sfnt2fnt.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <assert.h>
#include <ctype.h>
#include <ctype.h>
...
...
tools/widl/proxy.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
tools/widl/widl.c
View file @
49b7fdcf
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
tools/winedump/dump.c
View file @
49b7fdcf
...
@@ -46,10 +46,6 @@
...
@@ -46,10 +46,6 @@
#include "winedump.h"
#include "winedump.h"
#include "pe.h"
#include "pe.h"
#ifndef O_BINARY
# define O_BINARY 0
#endif
static
void
*
dump_base
;
static
void
*
dump_base
;
static
unsigned
long
dump_total_len
;
static
unsigned
long
dump_total_len
;
...
...
tools/winedump/main.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include "winedump.h"
#include "winedump.h"
...
...
tools/wmc/wmc.c
View file @
49b7fdcf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
...
@@ -279,4 +280,3 @@ static void segvhandler(int sig)
...
@@ -279,4 +280,3 @@ static void segvhandler(int sig)
fflush
(
stderr
);
fflush
(
stderr
);
abort
();
abort
();
}
}
tools/wmc/write.c
View file @
49b7fdcf
...
@@ -18,6 +18,9 @@
...
@@ -18,6 +18,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
...
tools/wrc/parser.y
View file @
49b7fdcf
...
@@ -121,6 +121,7 @@
...
@@ -121,6 +121,7 @@
* - Added extra comment about grammar
* - Added extra comment about grammar
*/
*/
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include
<stdio
.
h
>
#include
<stdio
.
h
>
#include
<stdlib
.
h
>
#include
<stdlib
.
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