mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	dtksh: make it build under openindiana
This commit is contained in:
		
							parent
							
								
									e75a8162ad
								
							
						
					
					
						commit
						47dfe49a72
					
				
					 11 changed files with 9 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -29,8 +29,7 @@ LOCAL_LDFLAGS = -bE:dtksh.exp
 | 
			
		|||
#ifdef SunArchitecture
 | 
			
		||||
.NO_PARALLEL:
 | 
			
		||||
 | 
			
		||||
/* These need to be manually set for Solaris due to a bug in the build system */
 | 
			
		||||
KSH_LDFLAGS = -lm -lsocket
 | 
			
		||||
SYS_LIBRARIES = -lm -lsecdb -lsocket -lnsl
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
DEPEND_DEFINES = $(DEPENDDEFINES)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -58,9 +58,7 @@
 | 
			
		|||
#include "hash.h"
 | 
			
		||||
#include "stdio.h"
 | 
			
		||||
#include "defs.h"
 | 
			
		||||
#define NO_AST
 | 
			
		||||
#include "dtksh.h"
 | 
			
		||||
#undef NO_AST
 | 
			
		||||
#include "xmksh.h"
 | 
			
		||||
#include "dtkcmds.h"
 | 
			
		||||
#include "xmcvt.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,9 +55,7 @@
 | 
			
		|||
#include <Dt/Print.h>
 | 
			
		||||
#include "hash.h"
 | 
			
		||||
#include "stdio.h"
 | 
			
		||||
#define NO_AST
 | 
			
		||||
#include "dtksh.h"
 | 
			
		||||
#undef NO_AST
 | 
			
		||||
#include "xmksh.h"
 | 
			
		||||
#include "XtCvtrs.h"
 | 
			
		||||
#include "dtkcmds.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,9 +33,7 @@
 | 
			
		|||
#ifndef _Dtksh_dtksh_h
 | 
			
		||||
#define _Dtksh_dtksh_h
 | 
			
		||||
 | 
			
		||||
#if !defined(NO_AST)
 | 
			
		||||
#include "nval.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define SUCCESS		0
 | 
			
		||||
#define FAIL		(-1)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,22 @@
 | 
			
		|||
--- ./ksh93/src/cmd/ksh93/sh/init.c	2020-11-22 15:34:35.964537420 -0600
 | 
			
		||||
+++ init.c	2020-12-31 19:31:00.091176802 -0600
 | 
			
		||||
@@ -48,6 +48,38 @@
 | 
			
		||||
--- ./ksh93/src/cmd/ksh93/sh/init.c	2021-01-16 15:27:03.589079734 -0600
 | 
			
		||||
+++ init.c	2021-01-16 15:53:50.700864511 -0600
 | 
			
		||||
@@ -48,6 +48,28 @@
 | 
			
		||||
 #include	"lexstates.h"
 | 
			
		||||
 #include	"version.h"
 | 
			
		||||
 | 
			
		||||
+#ifdef BUILD_DTKSH
 | 
			
		||||
+#include <Dt/DtNlUtils.h>
 | 
			
		||||
+#include <Dt/EnvControlP.h>
 | 
			
		||||
+#include <stdio.h>
 | 
			
		||||
+#include <nl_types.h>
 | 
			
		||||
+#include <X11/X.h>
 | 
			
		||||
+#include <X11/Intrinsic.h>
 | 
			
		||||
+#include <X11/IntrinsicP.h>
 | 
			
		||||
+#include <X11/CoreP.h>
 | 
			
		||||
+#include <X11/StringDefs.h>
 | 
			
		||||
+#include <Xm/XmStrDefs.h>
 | 
			
		||||
+#include <setjmp.h>
 | 
			
		||||
+#include <string.h>
 | 
			
		||||
+#include <ctype.h>
 | 
			
		||||
+#include <Xm/Xm.h>
 | 
			
		||||
+#include <Xm/Protocols.h>
 | 
			
		||||
+#include "hash.h"
 | 
			
		||||
+#include "stdio.h"
 | 
			
		||||
+
 | 
			
		||||
+#define NO_AST
 | 
			
		||||
+#include "dtksh.h"
 | 
			
		||||
+#undef NO_AST
 | 
			
		||||
+#include "xmksh.h"
 | 
			
		||||
+#include "dtkcmds.h"
 | 
			
		||||
+#include "xmcvt.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -33,16 +24,15 @@
 | 
			
		|||
+#include "extra.h"
 | 
			
		||||
+#include "xmwidgets.h"
 | 
			
		||||
+#include "msgs.h"
 | 
			
		||||
+#include <locale.h>
 | 
			
		||||
+#endif
 | 
			
		||||
+
 | 
			
		||||
 #if _hdr_wctype
 | 
			
		||||
 #include	<ast_wchar.h>
 | 
			
		||||
 #include	<wctype.h>
 | 
			
		||||
@@ -1469,6 +1501,16 @@
 | 
			
		||||
 #endif
 | 
			
		||||
	if(shp->userinit=userinit)
 | 
			
		||||
		(*userinit)(shp, 0);
 | 
			
		||||
@@ -1481,6 +1503,16 @@
 | 
			
		||||
	shp->exittrap = 0;
 | 
			
		||||
	shp->errtrap = 0;
 | 
			
		||||
	shp->end_fn = 0;
 | 
			
		||||
+#ifdef BUILD_DTKSH
 | 
			
		||||
+	int * lockedFds = LockKshFileDescriptors();
 | 
			
		||||
+	(void) XtSetLanguageProc((XtAppContext)NULL, (XtLanguageProc)NULL,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
Subproject commit 737438a30f3ccee326a74950d6c2ca7c7123d2f7
 | 
			
		||||
Subproject commit 6025c8125e596ccf5e25c651a8800c072310f3a4
 | 
			
		||||
| 
						 | 
				
			
			@ -42,9 +42,7 @@
 | 
			
		|||
#include <Xm/DialogS.h>
 | 
			
		||||
#include "hash.h"
 | 
			
		||||
#include "stdio.h"
 | 
			
		||||
#define NO_AST
 | 
			
		||||
#include "dtksh.h"
 | 
			
		||||
#undef NO_AST
 | 
			
		||||
#include "xmksh.h"
 | 
			
		||||
#include "dtkcmds.h"
 | 
			
		||||
#include "xmcvt.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,9 +45,7 @@
 | 
			
		|||
#include <X11/X.h>
 | 
			
		||||
#include <X11/Intrinsic.h>
 | 
			
		||||
#include <X11/IntrinsicP.h>
 | 
			
		||||
#define NO_AST
 | 
			
		||||
#include "dtksh.h"
 | 
			
		||||
#undef NO_AST
 | 
			
		||||
 | 
			
		||||
extern int Wtab_free;
 | 
			
		||||
extern wtab_t **W;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -47,9 +47,7 @@
 | 
			
		|||
#include <Xm/Protocols.h>
 | 
			
		||||
#include "hash.h"
 | 
			
		||||
#include "stdio.h"
 | 
			
		||||
#define NO_AST
 | 
			
		||||
#include "dtksh.h"
 | 
			
		||||
#undef NO_AST
 | 
			
		||||
#include "xmksh.h"
 | 
			
		||||
#include "dtkcmds.h"
 | 
			
		||||
#include "XtCvtrs.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,9 +55,7 @@
 | 
			
		|||
#include <Tt/tttk.h>
 | 
			
		||||
#include "hash.h"
 | 
			
		||||
#include "stdio.h"
 | 
			
		||||
#define NO_AST
 | 
			
		||||
#include "dtksh.h"
 | 
			
		||||
#undef NO_AST
 | 
			
		||||
#include "xmksh.h"
 | 
			
		||||
#include "XtCvtrs.h"
 | 
			
		||||
#include "dtkcmds.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,9 +77,7 @@
 | 
			
		|||
#include <Dt/HelpQuickD.h>
 | 
			
		||||
#include <Dt/Print.h>
 | 
			
		||||
 | 
			
		||||
#define NO_AST
 | 
			
		||||
#include "dtksh.h"
 | 
			
		||||
#undef NO_AST
 | 
			
		||||
 | 
			
		||||
#include "xmksh.h"
 | 
			
		||||
#include "dtkcmds.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue