From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AMVlAmBalV/yPgAA0tVLHw (envelope-from ) for ; Sun, 25 Oct 2020 10:58:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UBu6OV9alV9uYgAA1q6Kng (envelope-from ) for ; Sun, 25 Oct 2020 10:58:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B2F539401D0 for ; Sun, 25 Oct 2020 10:58:38 +0000 (UTC) Received: from localhost ([::1]:33908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWdjP-000837-RG for larch@yhetil.org; Sun, 25 Oct 2020 06:58:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWdiP-00082N-C3 for emacs-orgmode@gnu.org; Sun, 25 Oct 2020 06:57:34 -0400 Received: from coral.adamspiers.org ([85.119.82.20]:45836) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWdiN-00038U-6T for emacs-orgmode@gnu.org; Sun, 25 Oct 2020 06:57:32 -0400 Received: from localhost (243.103.2.81.in-addr.arpa [81.2.103.243]) by coral.adamspiers.org (Postfix) with ESMTPSA id 8A56B2E6DE for ; Sun, 25 Oct 2020 10:57:29 +0000 (GMT) From: Adam Spiers To: emacs-orgmode@gnu.org Subject: [PATCH] x11idle: Make installation a little smoother Date: Sun, 25 Oct 2020 10:57:25 +0000 Message-Id: <20201025105725.18577-1-orgmode@adamspiers.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=85.119.82.20; envelope-from=orgmode@adamspiers.org; helo=coral.adamspiers.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/25 06:57:29 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=adamspiers.org (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: tFERa0bFcZ+q Fix a -Wimplicit-int compiler warning, and make it more obvious how to obtain scrnsaver.h on three of the most popular Linux distros. Signed-off-by: Adam Spiers --- contrib/scripts/x11idle.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/scripts/x11idle.c b/contrib/scripts/x11idle.c index 22cefe1e6..b8db27560 100644 --- a/contrib/scripts/x11idle.c +++ b/contrib/scripts/x11idle.c @@ -1,4 +1,9 @@ +/* This header file is provided by the libxss-dev package on Debian, + * by the libXss-devel rpm on openSUSE, and the libXScrnSaver-devel + * rpm on Fedora. + */ #include + #include /* Based on code from @@ -7,7 +12,7 @@ * compile with 'gcc -l Xss x11idle.c -o x11idle' and copy x11idle into your * path */ -main() { +int main() { XScreenSaverInfo *info = XScreenSaverAllocInfo(); //open the display specified by the DISPLAY environment variable Display *display = XOpenDisplay(0); -- 2.28.0