From patchwork Mon Jun 6 08:49:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 630707 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rNT0q5x94z9rxl for ; Mon, 6 Jun 2016 18:50:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=WBYUPDfF; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=rnfpQe/Ww2nHV7btAu9p/twWQnp8k M7WL4Hyh6IF+i42p8MNQNr7FoBVpPGbf4Vgvo8y358fqgR4FGg+Peb+rrG/z3hp4 qOsSPdmuCB+3M5azRV5gE2EqfmN/BsZKZjmkv68JceHKXSdp+AY+csmjmXiZxJQS Fclq1wxf5JCMxg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type; s=default; bh=1Q3CkN4cRzO+JUHR8c0ePcqHOQQ=; b=WBY UPDfFce35LQ9kNS7uunBfVOPa40PPKFAqrbHjgjAv+iBF7TFMoJ47HiQvCmjHHRw XCHujuA36EWbK7SbHXC7QqPkNG7HAJRwbWhYHL8OZ4L9EXVncLLet6GLjxzWed38 zvS0sqyhegdTZ57INa7bfNKB/nNbzYYAU8i/d/Ko= Received: (qmail 94844 invoked by alias); 6 Jun 2016 08:49:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 94812 invoked by uid 89); 6 Jun 2016 08:49:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=Stefan, Hx-languages-length:1153 X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Stefan Liebler Subject: [PATCH] tst-rec-dlopen: Fix build fail due to missing inclusion of string.h Date: Mon, 6 Jun 2016 10:49:45 +0200 Lines: 54 Message-ID: <57553929.4000603@linux.vnet.ibm.com> Mime-Version: 1.0 X-Mozilla-News-Host: news://news.gmane.org:119 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 Hi, on S390, I get an compile error for dlfcn/tst-rec-dlopen.c: tst-rec-dlopen.c: In function ‘malloc’: tst-rec-dlopen.c:101:4: error: implicit declaration of function ‘strlen’ [-Werror=implicit-function-declaration] (void) write (STDOUT_FILENO, message, strlen (message)); ^ tst-rec-dlopen.c:101:42: error: incompatible implicit declaration of built-in function ‘strlen’ [-Werror] (void) write (STDOUT_FILENO, message, strlen (message)); ^ tst-rec-dlopen.c:112:42: error: incompatible implicit declaration of built-in function ‘strlen’ [-Werror] (void) write (STDOUT_FILENO, message, strlen (message)); ^ This patch adds the missing "#include " for strlen. Okay to commit? Bye Stefan ChangeLog: * dlfcn/tst-rec-dlopen.c: Include string.h. diff --git a/dlfcn/tst-rec-dlopen.c b/dlfcn/tst-rec-dlopen.c index 07e0cc4..0269851 100644 --- a/dlfcn/tst-rec-dlopen.c +++ b/dlfcn/tst-rec-dlopen.c @@ -23,6 +23,7 @@ #include #include #include +#include #define DSO "moddummy1.so" #define FUNC "dummy1"