atoll not present on HPUX 11.11 or 11.23
The 'atoll' function is not present on HPUX 11.11 or 11.23 and thus compilation fails on these platforms. For example:
g++ -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pthread -DUTC_OFFSET=EDT -D_REENTRANT -pthread -g -O2 -Wall -MD -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wshadow -Wwrite-strings -Wcast-align -Wredundant-decls -Wdisabled-optimization -Wfloat-equal -Wmultichar -Wmissing-noreturn -Wstrict-null-sentinel -Woverloaded-virtual -Wsign-promo -funit-at-a-time -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp In file included from /usr/local/include/c++/4.2.3/iosfwd:49, from /usr/local/include/c++/4.2.3/bits/stl_algobase.h:70, from /usr/local/include/c++/4.2.3/bits/char_traits.h:46, from /usr/local/include/c++/4.2.3/string:47, from common.h:149, from main.h:22, from main.cpp:18: /usr/local/include/c++/4.2.3/bits/postypes.h:49:35: error: stdint.h: No such file or directory main.cpp: In member function 'uint64_t state::find_block_size(std::string)': main.cpp:1187: error: 'atoll' was not declared in this scope *** Error exit code 1
We will need to have a check for atoll in configure.ac and then a private implementation. Since we already require the use of STL, we can implement it with std::iostream