Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Fix a double header definition on newer NDK versions.
Browse files Browse the repository at this point in the history
Newer Android NDK versions (>21) have  APRA Nameser_compat.h, which causes a double struct definition. This patch checks if APRA nameser.h includes APRA nameser_compat.h and if that is the case, it disables android_dns.h.
  • Loading branch information
LenaWil authored and yvesf committed Oct 13, 2017
1 parent a4688cd commit b5cb917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jni/iodine/src/android_dns.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

#ifndef __FIX_ANDROID_H__
#define __FIX_ANDROID_H__
#include <arpa/nameser.h>
#ifndef _ARPA_NAMESER_COMPAT_

typedef struct {
unsigned id :16;
Expand Down Expand Up @@ -36,4 +38,5 @@ typedef struct {
#define T_TXT 16
#define T_SRV 33

#endif
#endif //_ARPA_NAMESER_COMPAT_
#endif //__FIX_ANDROID_H__

2 comments on commit b5cb917

@michaelhopper01221974
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export PATH=$PATH:/data/data/exa.free.bbin/files

@yvesf
Copy link
Owner

@yvesf yvesf commented on b5cb917 Jun 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whatever this means... http://gitlab.com/andiodine/andiodine

Please sign in to comment.