Skip to content

Commit

Permalink
Make compilation musl compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
gholmann16 authored and TheAssassin committed Jul 18, 2023
1 parent 6a3669f commit e56c21b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/libappimage/libappimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <limits.h>

#include "xdg-basedir.h"

Expand Down
8 changes: 6 additions & 2 deletions src/libappimage/utils/light_elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

#include <inttypes.h>

__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif

typedef uint16_t Elf32_Half;
typedef uint16_t Elf64_Half;
Expand Down Expand Up @@ -114,6 +116,8 @@ typedef struct elf32_note {
#define EI_CLASS 4
#define EI_DATA 5

__END_DECLS
#ifdef __cplusplus
}
#endif

#endif /* elf.h */
8 changes: 6 additions & 2 deletions src/libappimage_shared/light_elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

#include <inttypes.h>

__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif

typedef uint16_t Elf32_Half;
typedef uint16_t Elf64_Half;
Expand Down Expand Up @@ -114,6 +116,8 @@ typedef struct elf32_note {
#define EI_CLASS 4
#define EI_DATA 5

__END_DECLS
#ifdef __cplusplus
}
#endif

#endif /* elf.h */

0 comments on commit e56c21b

Please sign in to comment.