*** ./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 */ *** ./src/winwidget.c.ORIG Thu Jan 5 15:48:30 2017 --- ./src/winwidget.c Thu Jan 5 15:50:58 2017 *************** *** 148,153 **** --- 148,159 ---- return(ret); } + #ifdef _AIX + # ifndef HOST_NAME_MAX + # define HOST_NAME_MAX 256 + # endif + #endif + void winwidget_create_window(winwidget ret, int w, int h) { XSetWindowAttributes attr; *** ./config.mk.ORIG Thu Jan 5 15:44:35 2017 --- ./config.mk Thu Jan 5 15:45:32 2017 *************** *** 6,12 **** curl ?= 1 debug ?= 0 help ?= 0 ! xinerama ?= 1 exif ?= 0 # Prefix for all installed files --- 6,12 ---- curl ?= 1 debug ?= 0 help ?= 0 ! xinerama ?= 0 exif ?= 0 # Prefix for all installed files *************** *** 32,38 **** # default CFLAGS CFLAGS ?= -g -O2 - CFLAGS += -Wall -Wextra -pedantic ifeq (${curl},1) CFLAGS += -DHAVE_LIBCURL --- 32,37 ---- *** ./config.mk.ORIG Thu Jan 5 15:55:52 2017 --- ./config.mk Thu Jan 5 15:55:46 2017 *************** *** 19,25 **** # 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 --- 19,25 ---- # 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