From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex Corcoles Newsgroups: gmane.emacs.devel Subject: Re: Interest in a Cosmopolitan build? Date: Wed, 08 Nov 2023 21:11:51 +0100 Message-ID: <784ffc8ae66e600ffbc598232cbc1abea9e55788.camel@corcoles.net> References: <83ttpw1lzw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35963"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.40.4 (3.40.4-9.el9) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 08 21:12:54 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r0ov0-0009Ai-BK for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Nov 2023 21:12:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0ouA-0004Ee-MY; Wed, 08 Nov 2023 15:12:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0ou8-0004ER-Ri for emacs-devel@gnu.org; Wed, 08 Nov 2023 15:12:00 -0500 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0ou3-0003H6-Tp; Wed, 08 Nov 2023 15:12:00 -0500 Original-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40859dee28cso281155e9.0; Wed, 08 Nov 2023 12:11:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699474314; x=1700079114; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VEQ+1pJxyj79nqRdYqKYy/hIZQKV9Tb8TyUr1kczaNI=; b=tVmjiTZ/4IP5x0ra+U0grtFwc0QhwteJMvg0wnHglt9KNEJfCqcEjYoLbDZeu9CRYi nujDt2hcvD5Mzfwp2YpAWTSkO/9TrLmStIQ3RIKBiKJevSXzgPaSLpCB39Mvkzk/UuNk BlqSRUF7wrNT3E3+QQQ/GO/PoIqOS2p4uCwgyTGKR6dWsZbIFZAKxhoaKaHuX7YIv+Xk 4jqRCXz3JWxBCYicNT9MzCqMcOApnUdAVu8uY55SMTuqXLFN3WfT642/LTpX4X6oqzhX 9AzFr19vQv60gMcwZtv/zX0LruyO8N1g8lHPZu242qjFD1VyaXsjrka24bUcsP6/r7Xv HlgQ== X-Gm-Message-State: AOJu0YxjO0ZsQ3Ay0agwxtbdY8VDCWTLCEnhcUnNs/MWlZXkvtgWoXg1 W0DGl2omSgkcWBycbAdX3+V6z2DC18xo1w== X-Google-Smtp-Source: AGHT+IGScHiAyaGwmFIP+kDYboaj0LvuMgeom9MpTE+z/EidfrtqYbV2ZrOnDuyaeSaCuD6tJSOMpg== X-Received: by 2002:a05:600c:19c6:b0:3fe:2bb1:11ba with SMTP id u6-20020a05600c19c600b003fe2bb111bamr2777947wmq.27.1699474313507; Wed, 08 Nov 2023 12:11:53 -0800 (PST) Original-Received: from molly.mad.int.pdp7.net ([79.116.36.51]) by smtp.gmail.com with ESMTPSA id t10-20020a05600c198a00b004064ac107cfsm20194400wmq.39.2023.11.08.12.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 12:11:53 -0800 (PST) In-Reply-To: <83ttpw1lzw.fsf@gnu.org> Received-SPF: pass client-ip=209.85.128.43; envelope-from=koalillo@gmail.com; helo=mail-wm1-f43.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312358 Archived-At: Hi, > Can you post the patches here?  I'd prefer not to point people to > GitHub. Not sure if this will come out OK: 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< --- ./emacs-29.1/src/config.in 2023-07-23 09:58:50.000000000 +0200 +++ ./emacs-29.1/src/config.in.new 2023-11-05 10:42:18.274387041 +0100 @@ -1790,7 +1790,7 @@ #undef INTERNAL_TERMINAL /* Define to read input using SIGIO. */ -#undef INTERRUPT_INPUT +#undef INTERRUPT_INPUT0 /* Returns true if character is any form of separator. */ #undef IS_ANY_SEP @@ -2094,7 +2094,7 @@ #undef UNIX98_PTYS /* Define to 1 if FIONREAD is usable. */ -#undef USABLE_FIONREAD +#undef USABLE_FIONREAD0 /* Define to 1 if SIGIO is usable. */ #undef USABLE_SIGIO --- ./emacs-29.1/src/filelock.c 2023-01-01 14:46:43.000000000 +0100 +++ ./emacs-29.1/src/filelock.c.new 2023-11-04 17:53:19.163803983 +0100 @@ -298,7 +298,7 @@ There is no way to tell whether a symlink call fails due to permissions issues or because links are not supported, but luckily the lock file code should work either way. */ -enum { LINKS_MIGHT_NOT_WORK = EPERM }; +#define LINKS_MIGHT_NOT_WORK EPERM /* Rename OLD to NEW. If FORCE, replace any existing NEW. It is OK if there are temporarily two hard links to OLD. @@ -498,17 +498,14 @@ /* True if errno values are negative. Although the C standard requires them to be positive, they are negative in Haiku. */ -enum { NEGATIVE_ERRNO = EDOM < 0 }; +#define NEGATIVE_ERRNO (EDOM < 0) /* Nonzero values that are not errno values. */ -enum - { - /* Another process on this machine owns it. */ - ANOTHER_OWNS_IT = NEGATIVE_ERRNO ? 1 : -1, - - /* This Emacs process owns it. */ - I_OWN_IT = 2 * ANOTHER_OWNS_IT - }; +/* Another process on this machine owns it. */ +#define ANOTHER_OWNS_IT (NEGATIVE_ERRNO ? 1 : -1) + +/* This Emacs process owns it. */ +#define I_OWN_IT (2 * ANOTHER_OWNS_IT) /* Return 0 if nobody owns the lock file LFNAME or the lock is obsolete, ANOTHER_OWNS_IT if another process owns it 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< The undef's I think clearly need to be solved in Cosmopolitan. The enums... I'm not so sure. Cheers, Álex