Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 34f18ba6 authored by deuce's avatar deuce

Const-ify.

parent c045a77f
......@@ -278,7 +278,7 @@ int DLLCALL unlock(int file, off_t offset, off_t size)
#endif /* !Unix && (MSVC || MinGW) */
#ifdef __unix__
FILE *_fsopen(char *pszFilename, char *pszMode, int shmode)
FILE *_fsopen(const char *pszFilename, const char *pszMode, int shmode)
{
int file;
int Mode=0;
......
......@@ -172,7 +172,7 @@ extern "C" {
#endif
#if defined(__unix__)
DLLEXPORT FILE * DLLCALL _fsopen(char *pszFilename, char *pszMode, int shmode);
DLLEXPORT FILE * DLLCALL _fsopen(const char *pszFilename, const char *pszMode, int shmode);
#endif
#if defined(_MSC_VER) && (_MSC_VER < 1300) /* missing prototypes */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment