diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/file_utils.c | 5 | ||||
-rw-r--r-- | src/common/logging.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/common/file_utils.c b/src/common/file_utils.c index 7584c1f2fb4..a2faafdf13a 100644 --- a/src/common/file_utils.c +++ b/src/common/file_utils.c @@ -12,6 +12,11 @@ * *------------------------------------------------------------------------- */ + +#ifndef FRONTEND +#error "This file is not expected to be compiled for backend code" +#endif + #include "postgres_fe.h" #include <dirent.h> diff --git a/src/common/logging.c b/src/common/logging.c index f3fc0b8262f..6a3a437a34b 100644 --- a/src/common/logging.c +++ b/src/common/logging.c @@ -7,6 +7,11 @@ * *------------------------------------------------------------------------- */ + +#ifndef FRONTEND +#error "This file is not expected to be compiled for backend code" +#endif + #include "postgres_fe.h" #include <unistd.h> |