Skip to content

Commit

Permalink
Fix on MINGW
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Nov 25, 2023
1 parent ddf44bd commit a223fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/indiclient/baseclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ bool BaseClient::connectServer()

IDLog("INDI::BaseClient::connectServer: creating new connection...\n");

#ifndef _WIN32
#if !defined (_WIN32) && !defined (_WINDOWS)
// System with unix support automatically connect over unix domain
if (d->cServer != "localhost" || d->cServer != "127.0.0.1" || d->connectToHostAndWait("localhost:", d->cPort) == false)
#endif
Expand Down
2 changes: 1 addition & 1 deletion libs/indicore/indiutility.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ inline static size_t indi_strlcpy(char * dst, const char * src, size_t maxlen)
// C++
#ifdef __cplusplus

#ifdef _WIN32
#if defined (_WIN32) || defined (_WINDOWS)
typedef int mode_t;
#endif

Expand Down

0 comments on commit a223fb6

Please sign in to comment.