From owner-p4-projects@FreeBSD.ORG Thu Jun 14 21:49:13 2012 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id ECDF81065675; Thu, 14 Jun 2012 21:49:12 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2D821065670 for ; Thu, 14 Jun 2012 21:49:12 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [69.147.83.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB928FC16 for ; Thu, 14 Jun 2012 21:49:12 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id q5ELnCn5041587 for ; Thu, 14 Jun 2012 21:49:12 GMT (envelope-from brooks@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id q5ELnCTo041584 for perforce@freebsd.org; Thu, 14 Jun 2012 21:49:12 GMT (envelope-from brooks@freebsd.org) Date: Thu, 14 Jun 2012 21:49:12 GMT Message-Id: <201206142149.q5ELnCTo041584@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to brooks@freebsd.org using -f From: Brooks Davis To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 212864 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 21:49:13 -0000 http://p4web.freebsd.org/@@212864?ac=10 Change 212864 by brooks@brooks_ecr_current on 2012/06/14 21:48:53 Also add LOCAL_LIB_DIRS to SUBDIRS. Otherwise their products don't get installed. Affected files ... .. //depot/projects/ctsrd/beribsd/src/Makefile.inc1#4 edit .. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/Makefile#2 edit .. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/Makefile#1 add .. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.c#1 add .. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.h#1 add .. //depot/projects/ctsrd/beribsd/src/ctsrd/pictview/Makefile#3 edit .. //depot/projects/ctsrd/beribsd/src/ctsrd/pictview/pictview.c#3 edit Differences ... ==== //depot/projects/ctsrd/beribsd/src/Makefile.inc1#4 (text+ko) ==== @@ -89,7 +89,7 @@ # These are last, since it is nice to at least get the base system # rebuilt before you do them. -.for _DIR in ${LOCAL_DIRS} +.for _DIR in ${LOCAL_LIB_DIRS} ${LOCAL_DIRS} .if exists(${.CURDIR}/${_DIR}/Makefile) SUBDIR+= ${_DIR} .endif ==== //depot/projects/ctsrd/beribsd/src/ctsrd-lib/Makefile#2 (text+ko) ==== @@ -3,6 +3,7 @@ .include -SUBDIR= libvuln_png +SUBDIR= libde4tc \ + libvuln_png .include ==== //depot/projects/ctsrd/beribsd/src/ctsrd/pictview/Makefile#3 (text+ko) ==== @@ -9,7 +9,7 @@ WARNS= 0 -LDADD+= -lvuln_png -lz -lm +LDADD+= -lde4tc -lvuln_png -lz -lm # Disable the stack protector, we want to be vulnerable SSP_CFLAGS= ==== //depot/projects/ctsrd/beribsd/src/ctsrd/pictview/pictview.c#3 (text+ko) ==== @@ -39,6 +39,10 @@ #include #include #include + +#include + +#if DIKE // endian.h not available in Linux? // #include #include @@ -63,11 +67,16 @@ // number of lines in the line pattern static const int num_lines_pattern = 600; +#endif // send keyboard output to stdout by default static int kbdfd = 0; +u_int32_t *fb_buf; +#if DIKE + + /***************************************************************************** * hack around endian issue * TODO: replace with endian library call (but not present in Linux?) @@ -413,6 +422,7 @@ } } */ +#endif /* DIKE */ void @@ -456,7 +466,6 @@ // while no pinch gesture, draw... while(!((touch_count==2) && (touch_gesture==0x49))) { // try to filter out short lived touch releases - multitouch_pole(); multitouch_filter(); if((touch_count<1) || (touch_count>2)) @@ -481,6 +490,7 @@ } +#if DIKE /***************************************************************************** * PNG image loader *****************************************************************************/ @@ -586,9 +596,9 @@ for(x=0; x