Skip to content
Snippets Groups Projects
Commit 6c245a67 authored by rswindell's avatar rswindell
Browse files

Fix Win32 link failure (e.g. unresolved getsockopt): when iniFile functions are

used, that requires a socket lib too. util builds (that don't need the .ini
file functions), they #define NO_SOCKET_SUPPORT, so exclude the user/####.ini
support functions in that case too.
parent f237e9b1
No related branches found
No related tags found
No related merge requests found
......@@ -3215,6 +3215,8 @@ BOOL DLLCALL set_sysop_availability(scfg_t* scfg, BOOL available)
return remove(sysop_available_semfile(scfg)) == 0;
}
#if !defined(NO_SOCKET_SUPPORT) /* This brings in xpdev which then requires socket lib */
/************************************/
/* user .ini file get/set functions */
/************************************/
......@@ -3268,3 +3270,5 @@ BOOL DLLCALL user_set_time_property(scfg_t* scfg, unsigned user_number, const ch
iniCloseFile(fp);
return result != NULL;
}
#endif /* !NO_SOCKET_SUPPORT */
\ No newline at end of file
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