use config.h to determine include <malloc.h>

This commit is contained in:
SASANO Takayoshi 2023-02-02 16:03:57 +09:00
parent e842533f83
commit 148221230b

View file

@ -4,8 +4,11 @@
* helpful to verify the information reported by drivers.
*/
#include "../include/config.h"
#include <stdio.h>
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#include <string.h>