Skip to content
Snippets Groups Projects
Commit b5b62536 authored by Moritz Angermann's avatar Moritz Angermann Committed by Herbert Valerio Riedel
Browse files

Android doesn’t have mkstemps

However the check similarly to tell and seekdir succeeds. However we will generate the following error down the line:
```
/var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc13524_0/ghc_2.c:11:104: error:
     warning: implicit declaration of function 'mkstemps' is invalid in C99 [-Wimplicit-function-declaration]
   |
11 | HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);}
   |                                                                                                        ^
HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);}
                                                                                                       ^
```
parent 9c2df120
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,8 @@ AC_CHECK_FUNCS([utimensat futimens])
AC_CHECK_FUNCS([lutimes futimes])
# Additional temp functions
AC_CHECK_FUNCS([mkstemps mkdtemp])
dnl androids bionic doesn't have mkstemps
AS_CASE([$target_os],[*-android*],[AC_CHECK_FUNCS([mkdtemp])],[AC_CHECK_FUNCS([mkstemps mkdtemp])])
# Functions for file synchronization and allocation control
AC_CHECK_FUNCS([fsync])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment