*** ./src/Makefile.ORIG Sun Mar 13 12:17:31 2011 --- ./src/Makefile Sun Mar 13 12:17:56 2011 *************** *** 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} -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 Sun Mar 13 12:18:40 2011 --- ./src/winwidget.c Sun Mar 13 12:18:54 2011 *************** *** 33,38 **** --- 33,44 ---- 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 May 12 10:38:51 2011 --- ./config.mk Thu May 12 10:40:22 2011 *************** *** 2,12 **** VERSION ?= 1.14 # 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.14 # 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 ifeq (${curl},1) CFLAGS += -DHAVE_LIBCURL --- 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 ?= 1 ifeq (${curl},1) CFLAGS += -DHAVE_LIBCURL *** ./src/imlib.c.ORIG Thu Nov 3 00:38:54 2011 --- ./src/imlib.c Thu Nov 3 00:43:42 2011 *************** *** 226,231 **** --- 226,235 ---- #ifdef HAVE_LIBCURL + #ifdef _AIX + # define NAME_MAX MAXNAMLEN + #endif + char *feh_http_load_image(char *url) { CURL *curl;