Skip to content

Commit

Permalink
Merge pull request #5327 from vpodzime/master-libntech_header_cleanup…
Browse files Browse the repository at this point in the history
…_fixes

Add missing #include's previously pulled in by libntech
  • Loading branch information
vpodzime authored Sep 18, 2023
2 parents 4eb6a9d + bdfef78 commit a4b1fc0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion libntech
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 a4b1fc0

Please sign in to comment.