diff --git a/src/utils.cpp b/src/utils.cpp index b45868baba..8455c334de 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -33,8 +33,8 @@ #endif #if defined(__APPLE__) +#include // for fcntl #include -#include // for fcntl #endif /*! \file utils.cpp */ @@ -170,7 +170,7 @@ const char *utils::guesspath(char *buf, int len, FILE *fp) #elif defined(__APPLE__) int fd = fileno(fp); char filepath[PATH_MAX]; - if (fcntl(fd,F_GETPATH,filepath) != -1) + if (fcntl(fd, F_GETPATH, filepath) != -1) strncpy(buf, filepath, len - 1); else strncpy(buf, "(unknown)", len - 1);