remove the unused header file 'error.h'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
build fix for OpenIndiana 5.11 with gcc

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>