recently, g++ has stopped to include some standard headers automatically. To make old code compile again, just include those headers manually. But: which ones do we need?
NOTE: <header>
is usually different from <header.h>
!
#include <string.h> // strcmp(), strstr(), strlen(), memcpy(), memset() #include <stdint.h> // uint32_t, uint16_t, uint8_t #include <stdlib.h> // malloc(), free(), abort(), atoi(), atol() #include <sys/types.h> // uint, ulong