jetbrains: useFetchCargoVendor (#377020)
[NixPkgs.git] / pkgs / by-name / uw / uwimap / gcc-14-fix.diff
blob1cf39630f4b1f6ddd7bae472557cf846a976f117
1 diff --git a/src/mtest/mtest.c b/src/mtest/mtest.c
2 index 69af568..8278c60 100644
3 --- a/src/mtest/mtest.c
4 +++ b/src/mtest/mtest.c
5 @@ -39,6 +39,8 @@
6 #include "c-client.h"
7 #include "imap4r1.h"
9 +char *gets(char *s);
11 /* Excellent reasons to hate ifdefs, and why my real code never uses them */
13 #ifndef unix
14 diff --git a/src/osdep/unix/flocklnx.c b/src/osdep/unix/flocklnx.c
15 index ca0112a..f4366ee 100644
16 --- a/src/osdep/unix/flocklnx.c
17 +++ b/src/osdep/unix/flocklnx.c
18 @@ -32,6 +32,7 @@
19 #ifndef NFS_SUPER_MAGIC
20 #define NFS_SUPER_MAGIC 0x6969
21 #endif
22 +#include "flocklnx.h"
24 int safe_flock (int fd,int op)
26 diff --git a/src/osdep/unix/flocklnx.h b/src/osdep/unix/flocklnx.h
27 new file mode 100644
28 index 0000000..03a71f7
29 --- /dev/null
30 +++ b/src/osdep/unix/flocklnx.h
31 @@ -0,0 +1,2 @@
33 +int safe_flock (int fd,int op);
34 diff --git a/src/osdep/unix/os_lnx.h b/src/osdep/unix/os_lnx.h
35 index b5f39ff..963765c 100644
36 --- a/src/osdep/unix/os_lnx.h
37 +++ b/src/osdep/unix/os_lnx.h
38 @@ -60,6 +60,7 @@
39 #define flock safe_flock
42 +#include "flocklnx.h"
43 #include "env_unix.h"
44 #include "fs.h"
45 #include "ftl.h"
46 diff --git a/src/osdep/unix/os_slx.h b/src/osdep/unix/os_slx.h
47 index b5f39ff..963765c 100644
48 --- a/src/osdep/unix/os_slx.h
49 +++ b/src/osdep/unix/os_slx.h
50 @@ -60,6 +60,7 @@
51 #define flock safe_flock
54 +#include "flocklnx.h"
55 #include "env_unix.h"
56 #include "fs.h"
57 #include "ftl.h"