Skip to content

Commit

Permalink
Add missing #include's previously pulled in by libntech
Browse files Browse the repository at this point in the history
With libntech's headers no longer pulling in platform.h, we need
to add it together with some other headers to some places in the
codebase.
  • Loading branch information
vpodzime committed Sep 18, 2023
1 parent 5b8823e commit bdfef78
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions cf-monitord/proc_net_parsing.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include <stdio.h>
#include <string.h> /* strchr() */
#include <arpa/inet.h>

#include <logging.h>
Expand Down
5 changes: 5 additions & 0 deletions libpromises/extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
included file COSL.txt.
*/

#include <platform.h>
#include <enterprise_extension.h>

#include <stdio.h> /* sscanf() */
#include <stdlib.h> /* getenv() */
#include <string.h> /* strcmp() */

#include <known_dirs.h>
#include <misc_lib.h>

Expand Down
3 changes: 3 additions & 0 deletions libpromises/extensions_template.c.pre
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ BEGIN_MARKER // Do not include this file directly! Build process should replace

#include <XextensionX_extension.h>

#include <stdlib.h> /* getenv() */
#include <string.h> /* strerror() */

#include <logging.h>

#include <pthread.h>
Expand Down
1 change: 1 addition & 0 deletions libpromises/extensions_template.h.pre
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ BEGIN_MARKER // Do not include this file directly! Build process should replace
#ifndef xEXTENSIONx_EXTENSION_H
#define xEXTENSIONx_EXTENSION_H

#include <platform.h>
#include <extensions.h>

#include <logging.h>
Expand Down
3 changes: 3 additions & 0 deletions libpromises/shared_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@

#ifndef __MINGW32__

#include <platform.h>
#include <shared_lib.h>
#include <logging.h>
#include <mutex.h>
#include <pthread.h>
#include <sys/stat.h>

#include <dlfcn.h>

Expand Down

0 comments on commit bdfef78

Please sign in to comment.