Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
fff1aa4e
Commit
fff1aa4e
authored
Mar 30, 2013
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compilation problems in lib/.
parent
8934438a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
nt/inc/ms-w32.h
nt/inc/ms-w32.h
+14
-7
nt/inc/sys/stat.h
nt/inc/sys/stat.h
+3
-0
src/w32.c
src/w32.c
+2
-2
No files found.
nt/inc/ms-w32.h
View file @
fff1aa4e
...
...
@@ -133,6 +133,20 @@ typedef unsigned short mode_t;
extern
char
*
getenv
();
#endif
#ifdef __MINGW32__
/* A kludge to avoid including header files in lib/. They cannot be
configured-out, and their stuff interferes with what we have
defined in this header and in other headers in nt/inc. Yuck! */
#define __need_system_fcntl_h
#define _GL_FCNTL_H
#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
#define _GL_ALREADY_INCLUDING_SIGNAL_H
#define _GL_ALREADY_INCLUDING_STDIO_H
#define __need_system_stdlib_h
#define _GL_TIME_H
#define __need_system_sys_stat_h
#endif
/* Prevent accidental use of features unavailable in older Windows
versions we still support. MinGW64 defines this to a higher value
in its system headers, and is not really compatible with values
...
...
@@ -276,9 +290,6 @@ typedef int pid_t;
#define popen _popen
#define pclose _pclose
#define umask _umask
#ifndef _MSC_VER
#define utimbuf _utimbuf
#endif
#define strdup _strdup
#define strupr _strupr
#define strnicmp _strnicmp
...
...
@@ -295,10 +306,6 @@ int _getpid (void);
array, and triggers an error message. */
#include <time.h>
#define tzname _tzname
#if !defined (_MSC_VER) || (_MSC_VER < 1400)
#undef utime
#define utime _utime
#endif
/* 'struct timespec' is used by time-related functions in lib/ and
elsewhere, but we don't use lib/time.h where the structure is
...
...
nt/inc/sys/stat.h
View file @
fff1aa4e
...
...
@@ -83,6 +83,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define S_TYPEISSHM(p) 0
#define S_TYPEISTMO(p) 0
#define UTIME_NOW (-1)
#define UTIME_OMIT (-2)
struct
stat
{
unsigned
__int64
st_ino
;
/* ino_t in sys/types.h is too narrow */
dev_t
st_dev
;
...
...
src/w32.c
View file @
fff1aa4e
...
...
@@ -4430,9 +4430,9 @@ fstat (int desc, struct stat * buf)
}
int
utime (const char *name, struct utimbuf *times)
utime (const char *name, struct
_
utimbuf *times)
{
struct utimbuf deftime;
struct
_
utimbuf deftime;
HANDLE fh;
FILETIME mtime;
FILETIME atime;
...
...
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