Changes for compiling on Illumos

* common.mk: use -lsocket -liconv -lgen on Illumos/Solaris
* mkdirp: return int and accept a mode argument
* use i3's mkdirp on everything except Illumos
This commit is contained in:
Tim Creech
2015-07-27 20:47:12 -04:00
committed by Tim Creech
parent c8b4303eff
commit f41018b33e
6 changed files with 26 additions and 15 deletions

View File

@ -222,7 +222,7 @@ char *store_restart_layout(void) {
char *filenamecopy = sstrdup(filename);
char *base = dirname(filenamecopy);
DLOG("Creating \"%s\" for storing the restart layout\n", base);
if (!mkdirp(base))
if (mkdirp(base, DEFAULT_DIR_MODE) != 0)
ELOG("Could not create \"%s\" for storing the restart layout, layout will be lost.\n", base);
free(filenamecopy);