diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-10 12:51:30 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-10 12:51:30 -0500 |
commit | 0627d1f093db4064c114e8fb2a2a8e824fb606bb (patch) | |
tree | fa2db4b4b298d004d0041dff3e971aa3ca9c61cf /spm.h | |
parent | c9ed1675a99a2a10eebbc2acd046aeb0e3e9fa77 (diff) | |
download | spmc-0627d1f093db4064c114e8fb2a2a8e824fb606bb.tar.gz |
Configuration++
Diffstat (limited to 'spm.h')
-rw-r--r-- | spm.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -14,6 +14,9 @@ #include <time.h> #include <sys/stat.h> #include <wordexp.h> +#if !defined(_WIN32) +#include <sys/utsname.h> +#endif #include "config.h" @@ -29,7 +32,8 @@ #define NOT_DIRSEP DIRSEP_WIN32 #endif -#define PKG_DIR "../pkgs" +#define PKG_DIR SPM_GLOBAL.package_dir +#define TMP_DIR SPM_GLOBAL.tmp_dir #define SHELL_DEFAULT 1 << 0 #define SHELL_OUTPUT 1 << 1 @@ -41,12 +45,12 @@ typedef struct { } ConfigItem; typedef struct { - char *platform; - char *arch; char *package_dir; + char *tmp_dir; char *user_config_basedir; char *user_config_file; ConfigItem **config; + struct utsname sysinfo; } spm_vars; static spm_vars SPM_GLOBAL; |