File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,11 @@ all::
159
159
# Define NO_PREAD if you have a problem with pread() system call (e.g.
160
160
# cygwin1.dll before v1.5.22).
161
161
#
162
+ # Define NO_SETITIMER if you don't have setitimer()
163
+ #
164
+ # Define NO_STRUCT_ITIMERVAL if you don't have struct itimerval
165
+ # This also implies NO_SETITIMER
166
+ #
162
167
# Define NO_THREAD_SAFE_PREAD if your pread() implementation is not
163
168
# thread-safe. (e.g. compat/pread.c or cygwin)
164
169
#
@@ -1677,6 +1682,13 @@ endif
1677
1682
ifdef OBJECT_CREATION_USES_RENAMES
1678
1683
COMPAT_CFLAGS += -DOBJECT_CREATION_MODE=1
1679
1684
endif
1685
+ ifdef NO_STRUCT_ITIMERVAL
1686
+ COMPAT_CFLAGS += -DNO_STRUCT_ITIMERVAL
1687
+ NO_SETITIMER=YesPlease
1688
+ endif
1689
+ ifdef NO_SETITIMER
1690
+ COMPAT_CFLAGS += -DNO_SETITIMER
1691
+ endif
1680
1692
ifdef NO_PREAD
1681
1693
COMPAT_CFLAGS += -DNO_PREAD
1682
1694
COMPAT_OBJS += compat/pread.o
Original file line number Diff line number Diff line change 167
167
extern int compat_mkdir_wo_trailing_slash (const char * , mode_t );
168
168
#endif
169
169
170
+ #ifdef NO_STRUCT_ITIMERVAL
171
+ struct itimerval {
172
+ struct timeval it_interval ;
173
+ struct timeval it_value ;
174
+ }
175
+ #endif
176
+
177
+ #ifdef NO_SETITIMER
178
+ #define setitimer (which ,value ,ovalue )
179
+ #endif
180
+
170
181
#ifndef NO_LIBGEN_H
171
182
#include <libgen.h>
172
183
#else
You can’t perform that action at this time.
0 commit comments