Skip to content

Commit bd35ef8

Browse files
committed
infocmp.c: include emalloc.h before other headers
on GLIBC, in order to get the declaration of vasprintf(), _GNU_SOURCE needs to be defined prior to the first inclusion of stdio.h. since emalloc.h already defines _GNU_SOURCE, including it first solves the issue. fixes sabotage-linux#16
1 parent ab92743 commit bd35ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infocmp/infocmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*/
2929

30+
#include <netbsd_sys/emalloc.h>
3031
#include <netbsd_sys/cdefs.h>
3132

3233
#include <sys/ioctl.h>
@@ -39,7 +40,6 @@
3940
#include <term_private.h>
4041
#include <term.h>
4142
#include <unistd.h>
42-
#include <netbsd_sys/emalloc.h>
4343

4444
#define SW 8
4545

0 commit comments

Comments
 (0)