*** ./src/imlib.c.ORIG Wed Mar 7 09:02:53 2012 --- ./src/imlib.c Wed Mar 7 09:04:47 2012 *************** *** 246,251 **** --- 246,255 ---- return(1); } + #ifdef _AIX + # define NAME_MAX MAXNAMLEN + #endif + static char *feh_magick_load_image(char *filename) { char argv_fd[12]; *** ./src/Makefile.ORIG Wed Mar 7 09:07:46 2012 --- ./src/Makefile Wed Mar 7 09:08:19 2012 *************** *** 6,12 **** I_SRCS = ${shell echo *.raw} I_DSTS = ${I_SRCS:.raw=.inc} ! feh: deps.mk ${OBJECTS} ${I_DSTS} ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS} include deps.mk --- 6,12 ---- I_SRCS = ${shell echo *.raw} I_DSTS = ${I_SRCS:.raw=.inc} ! feh: ${OBJECTS} ${I_DSTS} ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS} include deps.mk *************** *** 19,25 **** deps.mk: ${TARGETS} ${I_DSTS} ! ${CC} ${CPPFLAGS} -MM ${TARGETS} > $@ clean: rm -f feh *.o *.inc --- 19,25 ---- deps.mk: ${TARGETS} ${I_DSTS} ! echo "" > $@ clean: rm -f feh *.o *.inc *** ./src/winwidget.c.ORIG Wed Mar 7 09:05:43 2012 --- ./src/winwidget.c Wed Mar 7 09:06:30 2012 *************** *** 33,38 **** --- 33,44 ---- static void winwidget_register(winwidget win); static winwidget winwidget_allocate(void); + #if defined(_AIX51) && !defined(_AIX52) + 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 Wed Mar 7 09:01:00 2012 --- ./config.mk Wed Mar 7 09:02:23 2012 *************** *** 2,12 **** VERSION ?= 2.4 # 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 ?= 2.4 # 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 *************** *** 14,26 **** example_dir = ${main_dir}/share/doc/feh/examples # default CFLAGS ! CFLAGS ?= -g -O2 ! CFLAGS += -Wall -Wextra -pedantic curl ?= 1 debug ?= 0 help ?= 0 ! xinerama ?= 1 exif ?= 0 ifeq (${curl},1) --- 14,26 ---- example_dir = ${main_dir}/share/doc/feh/examples # default CFLAGS ! CFLAGS = -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include ! LDFLAGS = -L/opt/freeware/lib -Wl,-bmaxdata:0x80000000 curl ?= 1 debug ?= 0 help ?= 0 ! xinerama ?= 0 exif ?= 0 ifeq (${curl},1)