*** ./src/winwidget.c.ORIG Thu Aug 26 13:52:15 2010 --- ./src/winwidget.c Thu Aug 26 14:10:15 2010 *************** *** 32,37 **** --- 32,43 ---- static void winwidget_register(winwidget win); static winwidget winwidget_allocate(void); + #ifdef _AIX51 + long int lround(double x) + { + return( (long int) (x + 0.5) ); + } + #endif int window_num = 0; /* For window list */ winwidget *windows = NULL; /* List of windows to loop though */ *** ./config.mk.ORIG Thu Aug 26 13:07:35 2010 --- ./config.mk Thu Aug 26 13:08:42 2010 *************** *** 2,12 **** VERSION ?= 1.9 # Prefix for all installed files ! PREFIX ?= /usr/local # Directories for manuals, executables, docs, data, etc. main_dir = ${DESTDIR}${PREFIX} ! man_dir = ${main_dir}/share/man bin_dir = ${main_dir}/bin doc_dir = ${main_dir}/share/doc/feh image_dir = ${main_dir}/share/feh/images --- 2,12 ---- VERSION ?= 1.9 # Prefix for all installed files ! PREFIX ?= /opt/freeware # Directories for manuals, executables, docs, data, etc. main_dir = ${DESTDIR}${PREFIX} ! man_dir = ${main_dir}/man bin_dir = ${main_dir}/bin doc_dir = ${main_dir}/share/doc/feh image_dir = ${main_dir}/share/feh/images *************** *** 13,24 **** font_dir = ${main_dir}/share/feh/fonts # default CFLAGS ! CFLAGS ?= -g -O2 ! CFLAGS += -Wall -Wextra -pedantic # Comment these out if you don't have libxinerama ! xinerama = -DHAVE_LIBXINERAMA ! xinerama_ld = -lXinerama # Uncomment this for debug mode # (Use feh -+ or feh --debug to see debug output) --- 13,23 ---- font_dir = ${main_dir}/share/feh/fonts # default CFLAGS ! CFLAGS ?= -O # Comment these out if you don't have libxinerama ! #xinerama = -DHAVE_LIBXINERAMA ! #xinerama_ld = -lXinerama # Uncomment this for debug mode # (Use feh -+ or feh --debug to see debug output) *************** *** 30,33 **** CFLAGS += ${xinerama} -DPREFIX=\"${PREFIX}\" \ -DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\" ! LDLIBS += -lm -lpng -lX11 -lImlib2 -lgiblib ${xinerama_ld} --- 29,32 ---- CFLAGS += ${xinerama} -DPREFIX=\"${PREFIX}\" \ -DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\" ! LDLIBS += -L/opt/freeware/lib -lm -lpng -lX11 -lImlib2 -lgiblib ${xinerama_ld}