annotate lib/swig/swigwin-2.0.11/CCache/debian/patches/11_utimes.diff @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 --- ccache.c 2004-09-13 03:38:30.000000000 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 +++ ccache.c 2006-06-09 16:29:16.695117780 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 @@ -481,8 +481,13 @@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 /* update timestamps for LRU cleanup
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 also gives output_file a sensible mtime when hard-linking (for make) */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 +#ifdef HAVE_UTIMES
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 + utimes(hashname, NULL);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 + utimes(stderr_file, NULL);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 +#else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 utime(hashname, NULL);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 utime(stderr_file, NULL);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 +#endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 if (strcmp(output_file, "/dev/null") == 0) {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 ret = 0;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 --- ccache.h 2004-09-13 03:38:30.000000000 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 +++ ccache.h 2006-06-09 16:28:16.601658626 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 @@ -22,6 +22,9 @@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 #ifdef HAVE_PWD_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 #include <pwd.h>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 +#ifdef HAVE_SYS_TIME_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 +#include <sys/time.h>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 +#endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 #define STATUS_NOTFOUND 3
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 #define STATUS_FATAL 4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 --- config.h.in 2003-09-27 21:48:17.000000000 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 +++ config.h.in 2006-06-09 16:25:43.000000000 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 @@ -19,6 +19,9 @@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 /* Define to 1 if you have the `gethostname' function. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 #undef HAVE_GETHOSTNAME
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 +/* Define to 1 if you have the `getpwuid' function. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 +#undef HAVE_GETPWUID
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 +
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 /* Define to 1 if you have the <inttypes.h> header file. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 #undef HAVE_INTTYPES_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 @@ -31,6 +34,9 @@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 #undef HAVE_NDIR_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 +/* Define to 1 if you have the <pwd.h> header file. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 +#undef HAVE_PWD_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 +
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 /* Define to 1 if you have the `realpath' function. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 #undef HAVE_REALPATH
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 @@ -60,6 +66,9 @@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 /* Define to 1 if you have the <sys/stat.h> header file. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 #undef HAVE_SYS_STAT_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 +/* Define to 1 if you have the <sys/time.h> header file. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 +#undef HAVE_SYS_TIME_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 +
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 /* Define to 1 if you have the <sys/types.h> header file. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 #undef HAVE_SYS_TYPES_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 @@ -69,6 +78,9 @@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 /* Define to 1 if you have the <unistd.h> header file. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63 #undef HAVE_UNISTD_H
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 +/* Define to 1 if you have the `utimes' function. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 +#undef HAVE_UTIMES
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 +
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 /* Define to 1 if you have the `vasprintf' function. */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69 #undef HAVE_VASPRINTF
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 --- configure.in 2004-09-13 03:38:30.000000000 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 +++ configure.in 2006-06-09 16:25:15.541288184 -0700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 @@ -27,10 +27,11 @@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 AC_HEADER_TIME
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 AC_HEADER_SYS_WAIT
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 -AC_CHECK_HEADERS(ctype.h strings.h stdlib.h string.h pwd.h)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 +AC_CHECK_HEADERS(ctype.h strings.h stdlib.h string.h pwd.h sys/time.h)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 AC_CHECK_FUNCS(realpath snprintf vsnprintf vasprintf asprintf mkstemp)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81 AC_CHECK_FUNCS(gethostname getpwuid)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 +AC_CHECK_FUNCS(utimes)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84 AC_CACHE_CHECK([for compar_fn_t in stdlib.h],ccache_cv_COMPAR_FN_T, [
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 AC_TRY_COMPILE(