add u7/cnorm/civis to windows

dankamongmen/iterm2complete
nick black 3 years ago committed by nick black
parent f64258f468
commit a0007a9a3c

@ -605,7 +605,7 @@ file(GLOB MANSOURCE3 CONFIGURE_DEPENDS doc/man/man3/*.md)
# all further binaries require multimedia support # all further binaries require multimedia support
if(${USE_MULTIMEDIA} STREQUAL "none" OR WIN32) if(${USE_MULTIMEDIA} STREQUAL "none" OR WIN32)
list(FILTER MANSOURCE1 EXCLUDE REGEX "ncls.1.md") list(FILTER MANSOURCE1 EXCLUDE REGEX "ncls.1.md")
list(FILTER MANSOURCE1 EXCLUDE REGEX "ncplayer.1.md") #list(FILTER MANSOURCE1 EXCLUDE REGEX "ncplayer.1.md")
else() else()
############################################################################ ############################################################################
# ncls # ncls

@ -307,7 +307,7 @@ getlocalhostname(fetched_info* fi){
} }
return -1; return -1;
} }
#else #else // windows
static int static int
getusername(fetched_info* fi){ getusername(fetched_info* fi){
DWORD unlen = UNLEN + 1; DWORD unlen = UNLEN + 1;
@ -326,7 +326,8 @@ getusername(fetched_info* fi){
static int static int
getlocalhostname(fetched_info* fi){ getlocalhostname(fetched_info* fi){
char lp[MAX_COMPUTERNAME_LENGTH + 1]; char lp[MAX_COMPUTERNAME_LENGTH + 1];
if(GetComputerNameA(lp, sizeof(lp))){ size_t s = sizeof(lp);
if(GetComputerNameA(lp, &s)){
if( (fi->hostname = strdup(lp)) ){ if( (fi->hostname = strdup(lp)) ){
return 0; return 0;
} }

Loading…
Cancel
Save