Skip to content

Commit

Permalink
Fix compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
peters committed Sep 14, 2022
1 parent 402c5fe commit fe72153
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Snap.CoreRun.Pal/src/include/pal/pal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
#define PAL_API __declspec( dllexport )
#define PAL_CALLING_CONVENTION __cdecl
#elif PAL_PLATFORM_LINUX
#include <limits.h>
#include <climits>
#include <cstdio>
#include <wait.h>
#include <cstdint>
#include <sys/wait.h>
#include <sys/stat.h> // mode_t
#define PAL_MAX_PATH PATH_MAX
#define PAL_DIRECTORY_SEPARATOR_STR "/"
Expand Down
5 changes: 2 additions & 3 deletions src/Snap.CoreRun.Pal/src/pal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
#include "vendor/rcedit/rcedit.hpp"
#include <system_error>
#elif defined(PAL_PLATFORM_LINUX)
#include <sys/types.h> // O_RDONLY
#include <sys/wait.h> // wait
#include <unistd.h> // getcwd
#include <fcntl.h> // open
#include <dirent.h> // opendir
#include <libgen.h> // dirname
#include <dlfcn.h> // dlopen
#include <signal.h> // kill
#include <time.h> // nanosleep
#include <csignal> // kill
#include <ctime> // nanosleep
static const char* symlink_entrypoint_executable = "/proc/self/exe";
#endif

Expand Down

0 comments on commit fe72153

Please sign in to comment.